summaryrefslogtreecommitdiff
path: root/src/net/manaserv/messagehandler.h
diff options
context:
space:
mode:
authorThorbjørn Lindeijer <bjorn@lindeijer.nl>2024-01-24 11:00:22 +0100
committerThorbjørn Lindeijer <bjorn@lindeijer.nl>2024-01-24 11:05:51 +0100
commit418ffcadb0a5334ebe621369c14d6c3dd651acce (patch)
treee76132cb4a9013676b9a6dc6222d5f3f68d3a099 /src/net/manaserv/messagehandler.h
parentd9dc702115d705c39a39fb1f2290f5feb8dc19c9 (diff)
downloadmana-418ffcadb0a5334ebe621369c14d6c3dd651acce.tar.gz
mana-418ffcadb0a5334ebe621369c14d6c3dd651acce.tar.bz2
mana-418ffcadb0a5334ebe621369c14d6c3dd651acce.tar.xz
mana-418ffcadb0a5334ebe621369c14d6c3dd651acce.zip
Fixed compilation issues and use of deprecated C++ features
* Fixed compiler errors due to dynamic exception specifications * Replace std::auto_ptr with std::unique_ptr * Replace std::mem_fun with std::mem_fn * Prefix for_each with std:: (apparently not needed before) * Just use lambda instead of std::bind2nd * Removed usages of std::unary_function
Diffstat (limited to 'src/net/manaserv/messagehandler.h')
-rw-r--r--src/net/manaserv/messagehandler.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/net/manaserv/messagehandler.h b/src/net/manaserv/messagehandler.h
index 6e0221cb..8949d34e 100644
--- a/src/net/manaserv/messagehandler.h
+++ b/src/net/manaserv/messagehandler.h
@@ -41,7 +41,7 @@ class MessageHandler : public Net::MessageHandler
virtual void handleMessage(MessageIn &msg) = 0;
};
-typedef const std::auto_ptr<MessageHandler> MessageHandlerPtr;
+typedef const std::unique_ptr<MessageHandler> MessageHandlerPtr;
} // namespace ManaServ