Skip to content

Commit 472edfb

Browse files
committed
Adhere to coding guidelines
1 parent 9db2199 commit 472edfb

File tree

5 files changed

+8
-8
lines changed

5 files changed

+8
-8
lines changed

Client/cefweb/CWebCore.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -874,12 +874,12 @@ void CWebCore::StaticFetchBlacklistFinished(const SHttpDownloadResult& result)
874874
#endif
875875
}
876876

877-
bool CWebCore::GetGPUEnabled()
877+
bool CWebCore::GetGPUEnabled() const noexcept
878878
{
879879
return m_bGPUEnabled;
880880
}
881881

882-
bool CWebCore::GetGPUCompositingEnabled()
882+
bool CWebCore::GetGPUCompositingEnabled() const noexcept
883883
{
884884
return m_bGPUCompositingEnabled;
885885
}

Client/cefweb/CWebCore.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,8 +108,8 @@ class CWebCore : public CWebCoreInterface
108108
static void StaticFetchWhitelistFinished(const SHttpDownloadResult& result);
109109
static void StaticFetchBlacklistFinished(const SHttpDownloadResult& result);
110110

111-
bool GetGPUEnabled();
112-
bool GetGPUCompositingEnabled();
111+
bool GetGPUEnabled() const noexcept;
112+
bool GetGPUCompositingEnabled() const noexcept;
113113

114114
private:
115115
typedef std::pair<bool, eWebFilterType> WebFilterPair;

Client/mods/deathmatch/logic/luadefs/CLuaBrowserDefs.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1057,7 +1057,7 @@ int CLuaBrowserDefs::SetBrowserAjaxHandler(lua_State* luaVM)
10571057
return 1;
10581058
}
10591059

1060-
bool CLuaBrowserDefs::IsBrowserGPUEnabled()
1060+
bool CLuaBrowserDefs::IsBrowserGPUEnabled() noexcept
10611061
{
10621062
return g_pCore->GetWebCore()->GetGPUEnabled();
10631063
}

Client/mods/deathmatch/logic/luadefs/CLuaBrowserDefs.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,5 +51,5 @@ class CLuaBrowserDefs : public CLuaDefs
5151
LUA_DECLARE(ResizeBrowser);
5252
LUA_DECLARE(GUICreateBrowser);
5353
LUA_DECLARE(GUIGetBrowser);
54-
static bool IsBrowserGPUEnabled();
54+
static bool IsBrowserGPUEnabled() noexcept;
5555
};

Client/sdk/core/CWebCoreInterface.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,6 @@ class CWebCoreInterface
9191
virtual void GetFilterEntriesByType(std::vector<std::pair<SString, bool>>& outEntries, eWebFilterType filterType,
9292
eWebFilterState state = eWebFilterState::WEBFILTER_ALL) = 0;
9393

94-
virtual bool GetGPUEnabled() = 0;
95-
virtual bool GetGPUCompositingEnabled() = 0;
94+
virtual bool GetGPUEnabled() const noexcept = 0;
95+
virtual bool GetGPUCompositingEnabled() const noexcept = 0;
9696
};

0 commit comments

Comments
 (0)