diff --git a/interfaces/ktexteditor/cursor.h b/interfaces/ktexteditor/cursor.h index cbb6a83f..1eec7234 100644 --- a/interfaces/ktexteditor/cursor.h +++ b/interfaces/ktexteditor/cursor.h @@ -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)"; + s.nospace() << "(" << cursor.line() << ", " << cursor.column() << ")"; return s.space(); } diff --git a/interfaces/ktexteditor/range.h b/interfaces/ktexteditor/range.h index 30b03883..9aa2ba0b 100644 --- a/interfaces/ktexteditor/range.h +++ b/interfaces/ktexteditor/range.h @@ -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)"; + s << "[" << range.start() << " -> " << range.end() << "]"; return s; }