loolwsd/AdminModel.cpp | 4 ++-- loolwsd/AdminModel.hpp | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-)
New commits: commit 773dad57ba5f082fb0b95ca262a56f058fec4b02 Author: Miklos Vajna <vmik...@collabora.co.uk> Date: Tue Apr 12 08:09:39 2016 +0200 AdminModel: can pass these by reference Change-Id: I1c9ff03c06a8de00162cb2987b7218209f514850 diff --git a/loolwsd/AdminModel.cpp b/loolwsd/AdminModel.cpp index debd8a8..709f74b 100644 --- a/loolwsd/AdminModel.cpp +++ b/loolwsd/AdminModel.cpp @@ -124,7 +124,7 @@ void AdminModel::update(const std::string& data) notify(data); } -std::string AdminModel::query(const std::string command) +std::string AdminModel::query(const std::string& command) { StringTokenizer tokens(command, " ", StringTokenizer::TOK_IGNORE_EMPTY | StringTokenizer::TOK_TRIM); @@ -278,7 +278,7 @@ void AdminModel::notify(const std::string& message) } } -void AdminModel::addDocument(Poco::Process::PID pid, std::string url) +void AdminModel::addDocument(Poco::Process::PID pid, const std::string& url) { _documents.emplace(pid, Document(pid, url)); } diff --git a/loolwsd/AdminModel.hpp b/loolwsd/AdminModel.hpp index 04d65a6..639dd43 100644 --- a/loolwsd/AdminModel.hpp +++ b/loolwsd/AdminModel.hpp @@ -141,7 +141,7 @@ public: void update(const std::string& data); - std::string query(const std::string command); + std::string query(const std::string& command); /// Returns memory consumed by all active loolkit processes unsigned getTotalMemoryUsage(); @@ -166,7 +166,7 @@ public: void notify(const std::string& message); private: - void addDocument(Poco::Process::PID pid, std::string url); + void addDocument(Poco::Process::PID pid, const std::string& url); void removeDocument(Poco::Process::PID pid); _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits