From ba70a150e06e9b29f958a4e0e8c9c07250488f69 Mon Sep 17 00:00:00 2001 From: Mathew Sutcliffe Date: Mon, 29 Apr 2013 23:45:30 +0100 Subject: [PATCH] fix for g++ 4.5.2: this is the correct way to overload @operator<<@ for QDebug and CLogMessage because they are flyweight objects --- src/blackmisc/basestreamstringifier.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/blackmisc/basestreamstringifier.h b/src/blackmisc/basestreamstringifier.h index 714062e6f..55e748afa 100644 --- a/src/blackmisc/basestreamstringifier.h +++ b/src/blackmisc/basestreamstringifier.h @@ -20,7 +20,7 @@ template class CBaseStreamStringifier * \param uc * \return */ - friend QDebug &operator<<(QDebug &debug, const UsingClass &uc) + friend QDebug operator<<(QDebug debug, const UsingClass &uc) { const CBaseStreamStringifier &s = uc; debug << s.stringForStreaming(); @@ -33,7 +33,7 @@ template class CBaseStreamStringifier * \param uc * \return */ - friend QNoDebug &operator<<(QNoDebug &nodebug, const UsingClass &uc) + friend QNoDebug operator<<(QNoDebug nodebug, const UsingClass &uc) { return nodebug; } @@ -57,7 +57,7 @@ template class CBaseStreamStringifier * \param uc * \return */ - friend CLogMessage &operator<<(CLogMessage &log, const UsingClass &uc) + friend CLogMessage operator<<(CLogMessage log, const UsingClass &uc) { const CBaseStreamStringifier &s = uc; log << s.stringForStreaming();