From bc5f9a2363cb865fa1a8a1427d9320514e7d1889 Mon Sep 17 00:00:00 2001
From: Mihai Moldovan <ionic@ionic.de>
Date: Wed, 27 Dec 2017 22:09:29 +0100
Subject: 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(-)

(limited to 'nxcomp')

diff --git a/nxcomp/src/Log.h b/nxcomp/src/Log.h
index d0ea627fa..95436a55d 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;
 }
-- 
cgit v1.2.3