Skip to content

Commit 4267258

Browse files
committed
refactor: Proper const format
1 parent 935aa5a commit 4267258

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

Generals/Code/GameEngine/Include/Common/UserPreferences.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ class OptionPreferences : public UserPreferences
9191
void setOnlineIPAddress(AsciiString IP); // convenience function
9292
void setLANIPAddress(UnsignedInt IP); // convenience function
9393
void setOnlineIPAddress(UnsignedInt IP); // convenience function
94-
const Bool getArchiveReplaysEnabled(); // convenience function
94+
Bool getArchiveReplaysEnabled() const; // convenience function
9595
Bool getAlternateMouseModeEnabled(void); // convenience function
9696
Real getScrollFactor(void); // convenience function
9797
Bool getDrawScrollAnchor(void);

Generals/Code/GameEngine/Source/GameClient/GUI/GUICallbacks/Menus/OptionsMenu.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,7 @@ void OptionPreferences::setOnlineIPAddress( UnsignedInt IP )
310310
(*this)["GameSpyIPAddress"] = tmp;
311311
}
312312

313-
const Bool OptionPreferences::getArchiveReplaysEnabled()
313+
Bool OptionPreferences::getArchiveReplaysEnabled() const
314314
{
315315
OptionPreferences::const_iterator it = find("ArchiveReplays");
316316
if (it == end())

GeneralsMD/Code/GameEngine/Include/Common/UserPreferences.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ class OptionPreferences : public UserPreferences
9292
void setOnlineIPAddress(AsciiString IP); // convenience function
9393
void setLANIPAddress(UnsignedInt IP); // convenience function
9494
void setOnlineIPAddress(UnsignedInt IP); // convenience function
95-
const Bool getArchiveReplaysEnabled(); // convenience function
95+
Bool getArchiveReplaysEnabled() const; // convenience function
9696
Bool getAlternateMouseModeEnabled(void); // convenience function
9797
Bool getRetaliationModeEnabled(); // convenience function
9898
Bool getDoubleClickAttackMoveEnabled(void); // convenience function

GeneralsMD/Code/GameEngine/Source/GameClient/GUI/GUICallbacks/Menus/OptionsMenu.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -319,7 +319,7 @@ void OptionPreferences::setOnlineIPAddress( UnsignedInt IP )
319319
(*this)["GameSpyIPAddress"] = tmp;
320320
}
321321

322-
const Bool OptionPreferences::getArchiveReplaysEnabled()
322+
Bool OptionPreferences::getArchiveReplaysEnabled() const
323323
{
324324
OptionPreferences::const_iterator it = find("ArchiveReplays");
325325
if (it == end())

0 commit comments

Comments
 (0)