Ver Fonte

CClient::removeGUI(): This function should be declared 'const'

Alexander Wilms há 2 anos atrás
pai
commit
e4db6f2af8
2 ficheiros alterados com 2 adições e 2 exclusões
  1. 1 1
      client/Client.cpp
  2. 1 1
      client/Client.h

+ 1 - 1
client/Client.cpp

@@ -698,7 +698,7 @@ void CClient::reinitScripting()
 #endif
 }
 
-void CClient::removeGUI()
+void CClient::removeGUI() const
 {
 	// CClient::endGame
 	GH.curInt = nullptr;

+ 1 - 1
client/Client.h

@@ -216,7 +216,7 @@ public:
 
 	void showInfoDialog(InfoWindow * iw) override {};
 	void showInfoDialog(const std::string & msg, PlayerColor player) override {};
-	void removeGUI();
+	void removeGUI() const;
 
 #if SCRIPTING_ENABLED
 	scripting::Pool * getGlobalContextPool() const override;