diff options
author | Michele Calgaro <michele.calgaro@yahoo.it> | 2015-06-29 22:53:30 +0900 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2015-06-29 22:53:30 +0900 |
commit | ce9d4765cc846d40b3156ccb6a457adca8097564 (patch) | |
tree | 9bd9889a848eecb5d479bf91707da97cd3c1eb66 /tdecore/kdebug.cpp | |
parent | 508cf16bf962d2025b8271c5cf0b0c750a4f532f (diff) | |
download | tdelibs-ce9d4765cc846d40b3156ccb6a457adca8097564.tar.gz tdelibs-ce9d4765cc846d40b3156ccb6a457adca8097564.zip |
Minor typo and style corrections.
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
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; // ----- |