mirror of
https://github.com/vcmi/vcmi.git
synced 2024-11-28 08:48:48 +02:00
Explicitly call reset on shared_ptr for potential readability boost
This commit is contained in:
parent
06376ca4ef
commit
b5a1b178d9
@ -767,10 +767,10 @@ void CClient::removeGUI()
|
||||
GH.curInt = nullptr;
|
||||
if(GH.topInt())
|
||||
GH.topInt()->deactivate();
|
||||
adventureInt = nullptr;
|
||||
adventureInt.reset();
|
||||
GH.listInt.clear();
|
||||
GH.objsToBlit.clear();
|
||||
GH.statusbar = nullptr;
|
||||
GH.statusbar.reset();
|
||||
logGlobal->info("Removed GUI.");
|
||||
|
||||
LOCPLINT = nullptr;
|
||||
|
@ -75,8 +75,8 @@ public:
|
||||
funlockfile(stdout);
|
||||
#endif
|
||||
}
|
||||
|
||||
std::function<void(const std::string &, bool)> *cb; //function to be called when message is received
|
||||
//function to be called when message is received - string: message, bool: whether call was made from in-game console
|
||||
std::function<void(const std::string &, bool)> *cb;
|
||||
|
||||
private:
|
||||
int run();
|
||||
|
Loading…
Reference in New Issue
Block a user