Skip to content

Commit 9054094

Browse files
committed
IMainMenu::IsActive marked as const
1 parent 75e8e0f commit 9054094

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

src/xrEngine/IGame_Persistent.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ class IMainMenu
152152
public:
153153
virtual ~IMainMenu(){};
154154
virtual void Activate(bool bActive) = 0;
155-
virtual bool IsActive() = 0;
155+
virtual bool IsActive() const = 0;
156156
virtual bool CanSkipSceneRendering() = 0;
157157
virtual void DestroyInternal(bool bForce) = 0;
158158
};

src/xrGame/MainMenu.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,7 @@ bool CMainMenu::ReloadUI()
297297
return true;
298298
}
299299

300-
bool CMainMenu::IsActive() { return !!m_Flags.test(flActive); }
300+
bool CMainMenu::IsActive() const { return m_Flags.test(flActive); }
301301
bool CMainMenu::CanSkipSceneRendering() { return IsActive() && !m_Flags.test(flGameSaveScreenshot); }
302302

303303
// IInputReceiver

src/xrGame/MainMenu.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,6 @@ class CMainMenu : public IMainMenu,
4949
public CDialogHolder,
5050
public CUIWndCallback,
5151
public CDeviceResetNotifier
52-
5352
{
5453
CUIDialogWnd* m_startDialog;
5554

@@ -136,7 +135,7 @@ class CMainMenu : public IMainMenu,
136135
virtual ~CMainMenu();
137136

138137
virtual void Activate(bool bActive);
139-
virtual bool IsActive();
138+
bool IsActive() const override;
140139
virtual bool CanSkipSceneRendering();
141140

142141
virtual bool IgnorePause() { return true; }

0 commit comments

Comments
 (0)