Use more const refs where applicable

This commit is contained in:
WarmUpTill
2021-05-23 10:09:31 +02:00
committed by WarmUpTill
parent 5eb8378612
commit c2d2a27d44
16 changed files with 43 additions and 40 deletions

View File

@@ -253,7 +253,7 @@ std::pair<int, int> getCursorPos()
return pos;
}
bool isMaximized(std::string &title)
bool isMaximized(const std::string &title)
{
if (!ewmhIsSupported())
return false;
@@ -302,7 +302,7 @@ bool isMaximized(std::string &title)
return false;
}
bool isFullscreen(std::string &title)
bool isFullscreen(const std::string &title)
{
if (!ewmhIsSupported())
return false;