Skip to content

Commit

Permalink
Adhere to coding guidelines
Browse files Browse the repository at this point in the history
  • Loading branch information
Lpsd committed Oct 20, 2024
1 parent 9db2199 commit 472edfb
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions Client/cefweb/CWebCore.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -874,12 +874,12 @@ void CWebCore::StaticFetchBlacklistFinished(const SHttpDownloadResult& result)
#endif
}

bool CWebCore::GetGPUEnabled()
bool CWebCore::GetGPUEnabled() const noexcept
{
return m_bGPUEnabled;
}

bool CWebCore::GetGPUCompositingEnabled()
bool CWebCore::GetGPUCompositingEnabled() const noexcept
{
return m_bGPUCompositingEnabled;
}
4 changes: 2 additions & 2 deletions Client/cefweb/CWebCore.h
Original file line number Diff line number Diff line change
Expand Up @@ -108,8 +108,8 @@ class CWebCore : public CWebCoreInterface
static void StaticFetchWhitelistFinished(const SHttpDownloadResult& result);
static void StaticFetchBlacklistFinished(const SHttpDownloadResult& result);

bool GetGPUEnabled();
bool GetGPUCompositingEnabled();
bool GetGPUEnabled() const noexcept;
bool GetGPUCompositingEnabled() const noexcept;

private:
typedef std::pair<bool, eWebFilterType> WebFilterPair;
Expand Down
2 changes: 1 addition & 1 deletion Client/mods/deathmatch/logic/luadefs/CLuaBrowserDefs.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1057,7 +1057,7 @@ int CLuaBrowserDefs::SetBrowserAjaxHandler(lua_State* luaVM)
return 1;
}

bool CLuaBrowserDefs::IsBrowserGPUEnabled()
bool CLuaBrowserDefs::IsBrowserGPUEnabled() noexcept
{
return g_pCore->GetWebCore()->GetGPUEnabled();
}
2 changes: 1 addition & 1 deletion Client/mods/deathmatch/logic/luadefs/CLuaBrowserDefs.h
Original file line number Diff line number Diff line change
Expand Up @@ -51,5 +51,5 @@ class CLuaBrowserDefs : public CLuaDefs
LUA_DECLARE(ResizeBrowser);
LUA_DECLARE(GUICreateBrowser);
LUA_DECLARE(GUIGetBrowser);
static bool IsBrowserGPUEnabled();
static bool IsBrowserGPUEnabled() noexcept;
};
4 changes: 2 additions & 2 deletions Client/sdk/core/CWebCoreInterface.h
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,6 @@ class CWebCoreInterface
virtual void GetFilterEntriesByType(std::vector<std::pair<SString, bool>>& outEntries, eWebFilterType filterType,
eWebFilterState state = eWebFilterState::WEBFILTER_ALL) = 0;

virtual bool GetGPUEnabled() = 0;
virtual bool GetGPUCompositingEnabled() = 0;
virtual bool GetGPUEnabled() const noexcept = 0;
virtual bool GetGPUCompositingEnabled() const noexcept = 0;
};

0 comments on commit 472edfb

Please sign in to comment.