aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/CommandDialog.cc5
-rw-r--r--src/main.cc3
2 files changed, 3 insertions, 5 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
diff --git a/src/main.cc b/src/main.cc
index 3cc728d..574020a 100644
--- a/src/main.cc
+++ b/src/main.cc
@@ -59,7 +59,6 @@ using std::string;
59using std::ostream; 59using std::ostream;
60using std::ofstream; 60using std::ofstream;
61using std::streambuf; 61using std::streambuf;
62using std::auto_ptr;
63using std::out_of_range; 62using std::out_of_range;
64using std::runtime_error; 63using std::runtime_error;
65using std::bad_cast; 64using std::bad_cast;
@@ -68,7 +67,7 @@ using std::exception;
68 67
69namespace { 68namespace {
70 69
71auto_ptr<Fluxbox> fluxbox; 70std::unique_ptr<Fluxbox> fluxbox;
72 71
73void handleSignal(int signum) { 72void handleSignal(int signum) {
74 73