From a3e422826db8d3ec66119b63b3bda029b372baa9 Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Mon, 29 Jun 2015 22:53:30 +0900 Subject: Minor typo and style corrections. Signed-off-by: Michele Calgaro (cherry picked from commit ce9d4765cc846d40b3156ccb6a457adca8097564) --- tdecore/kdebug.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'tdecore/kdebug.cpp') diff --git a/tdecore/kdebug.cpp b/tdecore/kdebug.cpp index e4219cd75..73094ecd5 100644 --- a/tdecore/kdebug.cpp +++ b/tdecore/kdebug.cpp @@ -359,7 +359,7 @@ static void kDebugBackend( unsigned short nLevel, unsigned int nArea, const char abort(); } -kdbgstream &perror( kdbgstream &s) { return s << TQString(TQString::fromLocal8Bit(strerror(errno))); } +kdbgstream& perror( kdbgstream &s) { return s << TQString(TQString::fromLocal8Bit(strerror(errno))); } kdbgstream kdDebug(int area) { return kdbgstream(area, KDEBUG_INFO); } kdbgstream kdDebug(bool cond, int area) { if (cond) return kdbgstream(area, KDEBUG_INFO); else return kdbgstream(0, 0, false); } @@ -401,11 +401,11 @@ kdbgstream::~kdbgstream() { if (backtrace.ascii() != NULL) { fprintf(stderr, "%s", backtrace.latin1()); } - *this << "\n"; + *this << '\n'; } } -kdbgstream& kdbgstream::operator << (char ch) +kdbgstream& kdbgstream::operator<< (char ch) { if (!print) return *this; if (!isprint(ch)) @@ -417,7 +417,7 @@ kdbgstream& kdbgstream::operator << (char ch) return *this; } -kdbgstream& kdbgstream::operator << (TQChar ch) +kdbgstream& kdbgstream::operator<< (TQChar ch) { if (!print) return *this; if (!ch.isPrint()) @@ -429,12 +429,12 @@ kdbgstream& kdbgstream::operator << (TQChar ch) return *this; } -kdbgstream& kdbgstream::operator << (TQWidget* widget) +kdbgstream& kdbgstream::operator<< (TQWidget* widget) { return *this << const_cast< const TQWidget* >( widget ); } -kdbgstream& kdbgstream::operator << (const TQWidget* widget) +kdbgstream& kdbgstream::operator<< (const TQWidget* widget) { TQString string, temp; // ----- -- cgit v1.2.1