mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-25 22:42:04 +02:00
c++03 -> c++11 switch:
- use std versions of function, bind and ref - OVERRIDE -> override - NULL -> nullptr - use std versions of random distributions NOTE: this may be last revision that supports gcc-4.5
This commit is contained in:
@@ -63,7 +63,7 @@ class DLL_LINKAGE SettingsListener
|
||||
// Path to this node
|
||||
std::vector<std::string> path;
|
||||
// Callback
|
||||
boost::function<void(const JsonNode&)> callback;
|
||||
std::function<void(const JsonNode&)> callback;
|
||||
|
||||
SettingsListener(SettingsStorage &_parent, const std::vector<std::string> &_path);
|
||||
|
||||
@@ -75,7 +75,7 @@ public:
|
||||
~SettingsListener();
|
||||
|
||||
// assign callback function
|
||||
void operator()(boost::function<void(const JsonNode&)> _callback);
|
||||
void operator()(std::function<void(const JsonNode&)> _callback);
|
||||
|
||||
friend class SettingsStorage;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user