aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMihai Moldovan <ionic@ionic.de>2017-12-27 22:09:29 +0100
committerMihai Moldovan <ionic@ionic.de>2017-12-27 22:26:39 +0100
commitbc5f9a2363cb865fa1a8a1427d9320514e7d1889 (patch)
treea6e03c0250a7eb5fc8bdaf12c2050f98e53ea3a8
parent8036f6914ddb38cd06b27739a84b3a3667413c14 (diff)
downloadnx-libs-bc5f9a2363cb865fa1a8a1427d9320514e7d1889.tar.gz
nx-libs-bc5f9a2363cb865fa1a8a1427d9320514e7d1889.tar.bz2
nx-libs-bc5f9a2363cb865fa1a8a1427d9320514e7d1889.zip
nxcomp/src/Log.h: take a reference-type in generic has_newline() function.
Should avoid copy-constructing objects again.
-rw-r--r--nxcomp/src/Log.h2
1 files changed, 1 insertions, 1 deletions
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;
}