Make non-mutating member functions const

This commit is contained in:
Lukas Dürrenberger 2024-09-26 23:44:57 +02:00
parent a4836dec9a
commit 0b29f45f63
2 changed files with 4 additions and 4 deletions

View File

@ -204,7 +204,7 @@ bool CursorImpl::loadFromSystem(Cursor::Type type)
////////////////////////////////////////////////////////////
bool CursorImpl::isColorCursorSupported()
bool CursorImpl::isColorCursorSupported() const
{
return XcursorSupportsARGB(m_display.get());
}

View File

@ -2080,7 +2080,7 @@ bool WindowImplX11::processEvent(XEvent& windowEvent)
////////////////////////////////////////////////////////////
bool WindowImplX11::checkXRandR()
bool WindowImplX11::checkXRandR() const
{
// Check if the XRandR extension is present
int version = 0;
@ -2095,7 +2095,7 @@ bool WindowImplX11::checkXRandR()
////////////////////////////////////////////////////////////
RROutput WindowImplX11::getOutputPrimary(::Window& rootWindow, XRRScreenResources* res)
RROutput WindowImplX11::getOutputPrimary(::Window& rootWindow, XRRScreenResources* res) const
{
const RROutput output = XRRGetOutputPrimary(m_display.get(), rootWindow);
@ -2108,7 +2108,7 @@ RROutput WindowImplX11::getOutputPrimary(::Window& rootWindow, XRRScreenResource
////////////////////////////////////////////////////////////
Vector2i WindowImplX11::getPrimaryMonitorPosition()
Vector2i WindowImplX11::getPrimaryMonitorPosition() const
{
Vector2i monitorPosition;