summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndras Timar <andras.timar@collabora.com>2019-12-13 16:03:26 +0100
committerAndras Timar <andras.timar@collabora.com>2019-12-13 16:05:52 +0100
commit97ee22a8ffb17030fea9b094f13ffdc7d5a3b4e5 (patch)
treea7aad297335f1b1da1bb6e643f0b3c499dc6fc76
parent468595e949118cb894d12cc3c210ff70f3d970db (diff)
fix error: declaration of ‘load’ shadows a member of 'this' [-Werror=shadow]
Change-Id: I4bd4fb3ae6f01c0d03d622f90e1dfb872c396494
-rw-r--r--wsd/DocumentBroker.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/wsd/DocumentBroker.cpp b/wsd/DocumentBroker.cpp
index 77204dd69..fecea32bc 100644
--- a/wsd/DocumentBroker.cpp
+++ b/wsd/DocumentBroker.cpp
@@ -2244,8 +2244,8 @@ bool ConvertToBroker::startConversion(SocketDisposition &disposition, const std:
// Load the document manually and request saving in the target format.
std::string encodedFrom;
Poco::URI::encode(docBroker->getPublicUri().getPath(), "", encodedFrom);
- const std::string load = "load url=" + encodedFrom;
- std::vector<char> loadRequest(load.begin(), load.end());
+ const std::string _load = "load url=" + encodedFrom;
+ std::vector<char> loadRequest(_load.begin(), _load.end());
docBroker->_clientSession->handleMessage(true, WSOpCode::Text, loadRequest);
// Save is done in the setLoaded