Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Plasma
KWin
Commits
13fa83c7
Commit
13fa83c7
authored
Feb 17, 2021
by
Vlad Zahorodnii
Browse files
Make some getters in ClientConnection const
parent
3c0b35cd
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/wayland/clientconnection.cpp
View file @
13fa83c7
...
...
@@ -114,7 +114,7 @@ wl_resource *ClientConnection::getResource(quint32 id)
return
wl_client_get_object
(
d
->
client
,
id
);
}
wl_client
*
ClientConnection
::
client
()
wl_client
*
ClientConnection
::
client
()
const
{
return
d
->
client
;
}
...
...
@@ -129,7 +129,7 @@ ClientConnection::operator wl_client*() const
return
d
->
client
;
}
Display
*
ClientConnection
::
display
()
Display
*
ClientConnection
::
display
()
const
{
return
d
->
display
;
}
...
...
src/wayland/clientconnection.h
View file @
13fa83c7
...
...
@@ -60,11 +60,11 @@ public:
/**
* @returns the native wl_client this ClientConnection represents.
**/
wl_client
*
client
();
wl_client
*
client
()
const
;
/**
* @returns The Display this ClientConnection is connected to
**/
Display
*
display
();
Display
*
display
()
const
;
/**
* The pid of the ClientConnection endpoint.
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment