aboutsummaryrefslogtreecommitdiff
path: root/src/CommandDialog.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/CommandDialog.cc')
-rw-r--r--src/CommandDialog.cc5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/CommandDialog.cc b/src/CommandDialog.cc
index e777390..b8cd838 100644
--- a/src/CommandDialog.cc
+++ b/src/CommandDialog.cc
@@ -35,7 +35,6 @@
35 35
36using std::string; 36using std::string;
37using std::vector; 37using std::vector;
38using std::auto_ptr;
39using std::less; 38using std::less;
40using std::out_of_range; 39using std::out_of_range;
41 40
@@ -45,9 +44,9 @@ CommandDialog::CommandDialog(BScreen &screen, const string &title,
45 m_precommand(precommand) { } 44 m_precommand(precommand) { }
46 45
47void CommandDialog::exec(const std::string &text){ 46void CommandDialog::exec(const std::string &text){
48 47
49 // create Command<void> from line 48 // create Command<void> from line
50 auto_ptr<FbTk::Command<void> > cmd(FbTk::CommandParser<void>::instance().parse(m_precommand + text)); 49 std::unique_ptr<FbTk::Command<void> > cmd(FbTk::CommandParser<void>::instance().parse(m_precommand + text));
51 if (cmd.get()) 50 if (cmd.get())
52 cmd->execute(); 51 cmd->execute();
53 // post execute 52 // post execute