mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 04:38:11 +00:00
LibGUI: Move GTextPosition and GTextRange LogStream<< to their headers
This commit is contained in:
parent
bcf3a4457f
commit
1282b778e7
3 changed files with 18 additions and 14 deletions
|
@ -196,17 +196,3 @@ private:
|
|||
|
||||
NonnullOwnPtrVector<LineVisualData> m_line_visual_data;
|
||||
};
|
||||
|
||||
inline const LogStream& operator<<(const LogStream& stream, const GTextPosition& value)
|
||||
{
|
||||
if (!value.is_valid())
|
||||
return stream << "GTextPosition(Invalid)";
|
||||
return stream << String::format("(%d,%d)", value.line(), value.column());
|
||||
}
|
||||
|
||||
inline const LogStream& operator<<(const LogStream& stream, const GTextRange& value)
|
||||
{
|
||||
if (!value.is_valid())
|
||||
return stream << "GTextRange(Invalid)";
|
||||
return stream << value.start() << '-' << value.end();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue