[X2Go-Commits] [nx-libs] 01/01: 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:11:39 CET 2017


This is an automated email from the git hooks/post-receive script.

x2go pushed a commit to branch 3.6.x-rpm-debug
in repository nx-libs.

commit 0794cad6607e45fc39d3b1de4445805545204efb
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