mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 16:27:35 +00:00
LibGfx: Move a bunch of LogStream::operator<< to cpp files
This commit is contained in:
parent
3866e0d4d4
commit
34b5ff7c29
12 changed files with 162 additions and 28 deletions
|
@ -24,6 +24,7 @@
|
|||
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
#include <AK/Forward.h>
|
||||
#include <LibGfx/Point.h>
|
||||
|
||||
namespace Gfx {
|
||||
|
@ -64,7 +65,7 @@ public:
|
|||
return true;
|
||||
}
|
||||
|
||||
String to_string() const { return String::format("(%s,%s,%s)", m_a.to_string().characters(), m_b.to_string().characters(), m_c.to_string().characters()); }
|
||||
String to_string() const;
|
||||
|
||||
private:
|
||||
int m_det;
|
||||
|
@ -73,9 +74,6 @@ private:
|
|||
Point m_c;
|
||||
};
|
||||
|
||||
inline const LogStream& operator<<(const LogStream& stream, const Triangle& value)
|
||||
{
|
||||
return stream << value.to_string();
|
||||
}
|
||||
const LogStream& operator<<(const LogStream&, const Triangle&);
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue