Skip to content

Commit

Permalink
Merge pull request #1702 from CastagnaIT/ref
Browse files Browse the repository at this point in the history
[CompResources] Removed reference from GetScreenInfo
  • Loading branch information
CastagnaIT authored Oct 17, 2024
2 parents fe9109c + 135ea71 commit 6800302
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/CompResources.h
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ class ATTR_DLL_LOCAL CCompResources
* \brief Get the current screen info.
* \return The screen info.
*/
const ScreenInfo& GetScreenInfo()
ScreenInfo GetScreenInfo()
{
std::lock_guard<std::mutex> lock(m_screenInfoMutex);
return m_screenInfo;
Expand Down
2 changes: 1 addition & 1 deletion src/common/Chooser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ CHOOSER::IRepresentationChooser::IRepresentationChooser()

void CHOOSER::IRepresentationChooser::OnUpdateScreenRes()
{
const auto& sInfo = CSrvBroker::GetResources().GetScreenInfo();
const auto sInfo = CSrvBroker::GetResources().GetScreenInfo();

LOG::Log(LOGINFO,
"[Repr. chooser] Resolution set: %dx%d, max allowed: %dx%d, Adjust refresh rate: %i",
Expand Down

0 comments on commit 6800302

Please sign in to comment.