소스 검색

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

Alexander Wilms 2 년 전
부모
커밋
e4db6f2af8
2개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  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;