interfaces: fix some compiler warnings

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
Ivailo Monev 2016-05-22 23:49:03 +00:00
parent 70300427c6
commit 9482c0f2e6
2 changed files with 2 additions and 8 deletions

View file

@ -306,10 +306,7 @@ class KTEXTEDITOR_EXPORT Cursor
* kDebug() stream operator. Writes this cursor to the debug output in a nicely formatted way.
*/
inline friend QDebug operator<< (QDebug s, const Cursor& cursor) {
if (&cursor)
s.nospace() << "(" << cursor.line() << ", " << cursor.column() << ")";
else
s.nospace() << "(null cursor)";
return s.space();
}

View file

@ -569,10 +569,7 @@ class KTEXTEDITOR_EXPORT Range
* kDebug() stream operator. Writes this range to the debug output in a nicely formatted way.
*/
inline friend QDebug operator<< (QDebug s, const Range& range) {
if (&range)
s << "[" << range.start() << " -> " << range.end() << "]";
else
s << "(null range)";
return s;
}