1
0
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:
Dydzio 2023-01-15 01:18:35 +01:00
parent 06376ca4ef
commit b5a1b178d9
2 changed files with 4 additions and 4 deletions

View File

@ -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;

View File

@ -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();