app_server: workaround for GCC 4.7 misbehavior in IntRect.

* moved the inlined BRect constructor of IntRect to the cpp file. GCC will inline the method
anyway.
* impacted methods were both AGGTextRenderer::RenderString() in
src/servers/app/drawing/Painter/AGGTextRenderer.cpp, calling the StringRenderer constructor
with a BRect reference.
* unless someone comes up with an explanation, I'll try to come with a smaller testcase to
submit this problem upstream.
This commit is contained in:
Jérôme Duval
2013-04-28 16:39:14 +02:00
parent 7db03c63a0
commit 849683f4c8
2 changed files with 9 additions and 10 deletions
+9
View File
@@ -12,6 +12,15 @@
#include <stdio.h>
IntRect::IntRect(const BRect &r)
{
left = (int32)r.left;
top = (int32)r.top;
right = (int32)r.right;
bottom = (int32)r.bottom;
}
void
IntRect::SetLeftTop(const IntPoint& p)
{
-10
View File
@@ -149,16 +149,6 @@ IntRect::IntRect(const IntRect &r)
}
inline
IntRect::IntRect(const BRect &r)
{
left = (int32)r.left;
top = (int32)r.top;
right = (int32)r.right;
bottom = (int32)r.bottom;
}
inline
IntRect::IntRect(const IntPoint& leftTop, const IntPoint& rightBottom)
{