diff options
Diffstat (limited to 'src/CommandDialog.cc')
-rw-r--r-- | src/CommandDialog.cc | 5 |
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 | ||
36 | using std::string; | 36 | using std::string; |
37 | using std::vector; | 37 | using std::vector; |
38 | using std::auto_ptr; | ||
39 | using std::less; | 38 | using std::less; |
40 | using std::out_of_range; | 39 | using 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 | ||
47 | void CommandDialog::exec(const std::string &text){ | 46 | void 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 |