mirror of
https://bitbucket.org/smil3y/kdelibs.git
synced 2025-02-23 18:32:49 +00:00
interfaces: fix some compiler warnings
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
70300427c6
commit
9482c0f2e6
2 changed files with 2 additions and 8 deletions
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue