refactor: make PortalRemoteDesktop:handleSessionTransfer a const
This commit is contained in:
parent
a42b6cf897
commit
f52fdec236
2 changed files with 2 additions and 2 deletions
|
|
@ -234,7 +234,7 @@ void PortalRemoteDesktop::claimClipboard() const
|
|||
#endif
|
||||
}
|
||||
|
||||
void PortalRemoteDesktop::handleSelectionTransfer(XdpSession *session, const char *mimeType, uint32_t serial)
|
||||
void PortalRemoteDesktop::handleSelectionTransfer(XdpSession *session, const char *mimeType, uint32_t serial) const
|
||||
{
|
||||
#ifdef HAVE_LIBPORTAL_CLIPBOARD
|
||||
PortalClipboard::serveSelectionTransfer(m_screen->getClipboardCache(), session, mimeType, serial);
|
||||
|
|
|
|||
|
|
@ -32,7 +32,7 @@ private:
|
|||
void handleInitSession(GObject *object, GAsyncResult *res);
|
||||
void handleSessionStarted(GObject *object, GAsyncResult *res);
|
||||
void handleSessionClosed(XdpSession *session);
|
||||
void handleSelectionTransfer(XdpSession *session, const char *mimeType, uint32_t serial);
|
||||
void handleSelectionTransfer(XdpSession *session, const char *mimeType, uint32_t serial) const;
|
||||
void handleSelectionOwnerChanged(XdpSession *session, char **mimeTypes, gboolean isOwner) const;
|
||||
void reconnect(unsigned int timeout = 1000);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue