Skip to content

Commit fb14703

Browse files
committed
IMainMenu::IsActive marked as const
1 parent 44657a1 commit fb14703

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
@@ -299,7 +299,7 @@ bool CMainMenu::ReloadUI()
299299
return true;
300300
}
301301

302-
bool CMainMenu::IsActive() { return !!m_Flags.test(flActive); }
302+
bool CMainMenu::IsActive() const { return m_Flags.test(flActive); }
303303
bool CMainMenu::CanSkipSceneRendering() { return IsActive() && !m_Flags.test(flGameSaveScreenshot); }
304304

305305
// 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)