summaryrefslogtreecommitdiff
path: root/wsd/ClientSession.cpp
diff options
context:
space:
mode:
authorMichael Meeks <michael.meeks@collabora.com>2019-06-22 21:23:12 +0100
committerMichael Meeks <michael.meeks@collabora.com>2019-08-05 21:21:45 -0400
commit3c42f3525a73a3164cd61431f335e67ce6688ea0 (patch)
tree4cfd117b285dea33a3db45aee41c7c8df27478f6 /wsd/ClientSession.cpp
parent229ca094198e53ae77b12a832d2085fac96f130f (diff)
Rename to clipboardkey.
Change-Id: Idba1d839e75a5525a8b0e71b9aecff17b8aa05e9
Diffstat (limited to 'wsd/ClientSession.cpp')
-rw-r--r--wsd/ClientSession.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/wsd/ClientSession.cpp b/wsd/ClientSession.cpp
index 579308c4e..60b12dc49 100644
--- a/wsd/ClientSession.cpp
+++ b/wsd/ClientSession.cpp
@@ -66,7 +66,7 @@ ClientSession::ClientSession(const std::string& id,
// populate with random values.
for (auto it : _clipboardKeys)
- rotateClipboardHash(false);
+ rotateClipboardKey(false);
}
// Can't take a reference in the constructor.
@@ -85,7 +85,7 @@ ClientSession::~ClientSession()
SessionMap.erase(getId());
}
-void ClientSession::rotateClipboardHash(bool notifyClient)
+void ClientSession::rotateClipboardKey(bool notifyClient)
{
if (_wopiFileInfo && _wopiFileInfo->getDisableCopy())
return;
@@ -95,7 +95,7 @@ void ClientSession::rotateClipboardHash(bool notifyClient)
LOG_TRC("Clipboard key on [" << getId() << "] set to " << _clipboardKeys[0] <<
" last was " << _clipboardKeys[1]);
if (notifyClient)
- sendTextFrame("clipboardhash " + _clipboardKeys[0]);
+ sendTextFrame("clipboardkey: " + _clipboardKeys[0]);
}
std::string ClientSession::getClipboardURI(bool encode)
@@ -225,7 +225,7 @@ bool ClientSession::_handleInput(const char *buffer, int length)
// Send LOKit version information
sendTextFrame("lokitversion " + LOOLWSD::LOKitVersion);
// Send clipboard key
- rotateClipboardHash(true);
+ rotateClipboardKey(true);
return true;
}