diff options
author | Michele Calgaro <[email protected]> | 2015-06-29 22:53:30 +0900 |
---|---|---|
committer | Michele Calgaro <[email protected]> | 2015-06-29 22:54:02 +0900 |
commit | a3e422826db8d3ec66119b63b3bda029b372baa9 (patch) | |
tree | 4042007fc5a9c729c623b466e3583f83c2d7cbed /tdecore/kdebug.cpp | |
parent | 045b404b817b80c78ae498c37e49ace4230a75bc (diff) | |
download | tdelibs-a3e422826db8d3ec66119b63b3bda029b372baa9.tar.gz tdelibs-a3e422826db8d3ec66119b63b3bda029b372baa9.zip |
Minor typo and style corrections.
Signed-off-by: Michele Calgaro <[email protected]>
(cherry picked from commit ce9d4765cc846d40b3156ccb6a457adca8097564)
Diffstat (limited to 'tdecore/kdebug.cpp')
-rw-r--r-- | tdecore/kdebug.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
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; // ----- |