Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Plasma
KWayland Server
Commits
ba1f7733
Commit
ba1f7733
authored
Feb 17, 2021
by
Vlad Zahorodnii
Browse files
Make some getters in ClientConnection const
parent
b545c99c
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/server/clientconnection.cpp
View file @
ba1f7733
...
...
@@ -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/server/clientconnection.h
View file @
ba1f7733
...
...
@@ -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
.
Attach a 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