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:
@@ -12,6 +12,15 @@
|
|||||||
#include <stdio.h>
|
#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
|
void
|
||||||
IntRect::SetLeftTop(const IntPoint& p)
|
IntRect::SetLeftTop(const IntPoint& p)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -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
|
inline
|
||||||
IntRect::IntRect(const IntPoint& leftTop, const IntPoint& rightBottom)
|
IntRect::IntRect(const IntPoint& leftTop, const IntPoint& rightBottom)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user