all repos — fluxbox @ 52c9f6257d86e2882434497acf3d8243394fdb8f

custom fork of the fluxbox windowmanager

std::auto_ptr to std::unique_ptr
Mathias Gumz akira@fluxbox.org
commit

52c9f6257d86e2882434497acf3d8243394fdb8f

parent

5fc00dee32de8d31b7220c338810e86043eb87ae

2 files changed, 3 insertions(+), 5 deletions(-)

jump to
M src/CommandDialog.ccsrc/CommandDialog.cc

@@ -35,7 +35,6 @@ #include <vector>

using std::string; using std::vector; -using std::auto_ptr; using std::less; using std::out_of_range;

@@ -45,9 +44,9 @@ TextDialog(screen, title),

m_precommand(precommand) { } void CommandDialog::exec(const std::string &text){ - + // create Command<void> from line - auto_ptr<FbTk::Command<void> > cmd(FbTk::CommandParser<void>::instance().parse(m_precommand + text)); + std::unique_ptr<FbTk::Command<void> > cmd(FbTk::CommandParser<void>::instance().parse(m_precommand + text)); if (cmd.get()) cmd->execute(); // post execute
M src/main.ccsrc/main.cc

@@ -59,7 +59,6 @@ using std::string;

using std::ostream; using std::ofstream; using std::streambuf; -using std::auto_ptr; using std::out_of_range; using std::runtime_error; using std::bad_cast;

@@ -68,7 +67,7 @@ using std::exception;

namespace { -auto_ptr<Fluxbox> fluxbox; +std::unique_ptr<Fluxbox> fluxbox; void handleSignal(int signum) {