[X2Go-Commits] [nx-libs] 02/02: nxcomp/src/Log.h: take a reference-type in generic has_newline() function.
git-admin at x2go.org
git-admin at x2go.org
Wed Dec 27 22:27:59 CET 2017
This is an automated email from the git hooks/post-receive script.
x2go pushed a commit to branch 3.6.x
in repository nx-libs.
commit bc5f9a2363cb865fa1a8a1427d9320514e7d1889
Author: Mihai Moldovan <ionic at ionic.de>
Date: Wed Dec 27 22:09:29 2017 +0100
nxcomp/src/Log.h: take a reference-type in generic has_newline() function.
Should avoid copy-constructing objects again.
---
nxcomp/src/Log.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/nxcomp/src/Log.h b/nxcomp/src/Log.h
index d0ea627..95436a5 100644
--- a/nxcomp/src/Log.h
+++ b/nxcomp/src/Log.h
@@ -501,7 +501,7 @@ NXLog& operator<< (NXLog& out, const NXLogStamp& value);
template <typename T>
-bool has_newline(T value)
+bool has_newline(T &value)
{
return false;
}
--
Alioth's /home/x2go-admin/maintenancescripts/git/hooks/post-receive-email on /srv/git/code.x2go.org/nx-libs.git
More information about the x2go-commits
mailing list