[Libreoffice-commits] online.git: loolwsd/Util.cpp loolwsd/Util.hpp
Miklos Vajna
vmiklos at collabora.co.uk
Fri Jun 17 07:30:42 UTC 2016
loolwsd/Util.cpp | 2 +-
loolwsd/Util.hpp | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
New commits:
commit 5e1b21089117a8df25003879ad7cbf46dc588e43
Author: Miklos Vajna <vmiklos at collabora.co.uk>
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);
More information about the Libreoffice-commits
mailing list