loolwsd/Util.cpp | 2 +- loolwsd/Util.hpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
New commits: commit 5e1b21089117a8df25003879ad7cbf46dc588e43 Author: Miklos Vajna <[email protected]> Date: Fri Jun 17 09:18:26 2016 +0200 Util: pass by const ref diff --git a/loolwsd/Util.cpp b/loolwsd/Util.cpp index 3920ae1..6224534 100644 --- a/loolwsd/Util.cpp +++ b/loolwsd/Util.cpp @@ -128,7 +128,7 @@ namespace Util return name; } - std::string getTempFilePath(const std::string srcDir, const std::string& srcFilename) + std::string getTempFilePath(const std::string& srcDir, const std::string& srcFilename) { const std::string srcPath = srcDir + '/' + srcFilename; const std::string dstPath = Poco::Path::temp() + encodeId(rng::getNext()) + '_' + srcFilename; diff --git a/loolwsd/Util.hpp b/loolwsd/Util.hpp index b3065a4..fd76c54 100644 --- a/loolwsd/Util.hpp +++ b/loolwsd/Util.hpp @@ -82,7 +82,7 @@ namespace Util /// Primarily used by tests to avoid tainting the originals. /// srcDir shouldn't end with '/' and srcFilename shouldn't contain '/'. /// Returns the created file path. - std::string getTempFilePath(const std::string srcDir, const std::string& srcFilename); + std::string getTempFilePath(const std::string& srcDir, const std::string& srcFilename); /// Returns the name of the signal. const char *signalName(int signo); _______________________________________________ Libreoffice-commits mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits
