summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorMatteo Casalin <matteo.casalin@gmx.com>2012-12-25 15:18:26 +0100
committerMichael Stahl <mstahl@redhat.com>2013-01-07 13:14:57 +0000
commita4c7ded1fd2a879e66760a8fc3846af538da4b9d (patch)
tree128cbfa620ba4de837f78d7f831951a73c1f7b25 /tools
parent07969f6effe89b8cdc65764135337054751f280e (diff)
Cleanup: #include <tools/gen.hxx>
Change-Id: Ic547b4a59102afc8bdbc85ec95ac312e32ef2530 Reviewed-on: https://gerrit.libreoffice.org/1484 Reviewed-by: Michael Stahl <mstahl@redhat.com> Tested-by: Michael Stahl <mstahl@redhat.com>
Diffstat (limited to 'tools')
-rw-r--r--tools/inc/poly.h4
-rw-r--r--tools/inc/tools/svborder.hxx16
-rw-r--r--tools/source/generic/poly.cxx1
-rw-r--r--tools/source/generic/poly2.cxx1
4 files changed, 18 insertions, 4 deletions
diff --git a/tools/inc/poly.h b/tools/inc/poly.h
index a925f9b42739..9f05dcc2b3e4 100644
--- a/tools/inc/poly.h
+++ b/tools/inc/poly.h
@@ -19,7 +19,9 @@
#ifndef _POLY_H
#define _POLY_H
-#include <tools/gen.hxx>
+#include <sal/types.h>
+
+class Point;
class SAL_WARN_UNUSED ImplPolygonData
{
diff --git a/tools/inc/tools/svborder.hxx b/tools/inc/tools/svborder.hxx
index 0aebbfecdd47..de4a8666cbd8 100644
--- a/tools/inc/tools/svborder.hxx
+++ b/tools/inc/tools/svborder.hxx
@@ -29,11 +29,21 @@ class TOOLS_DLLPUBLIC SvBorder
public:
SvBorder()
- { nTop = nRight = nBottom = nLeft = 0; }
+ {
+ nTop = nRight = nBottom = nLeft = 0;
+ }
SvBorder( const Size & rSz )
- { nTop = nBottom = rSz.Height(); nRight = nLeft = rSz.Width(); }
+ {
+ nTop = nBottom = rSz.Height();
+ nRight = nLeft = rSz.Width();
+ }
SvBorder( long nLeftP, long nTopP, long nRightP, long nBottomP )
- { nLeft = nLeftP; nTop = nTopP; nRight = nRightP; nBottom = nBottomP; }
+ {
+ nLeft = nLeftP;
+ nTop = nTopP;
+ nRight = nRightP;
+ nBottom = nBottomP;
+ }
sal_Bool operator == ( const SvBorder & rObj ) const
{
return nTop == rObj.nTop && nRight == rObj.nRight &&
diff --git a/tools/source/generic/poly.cxx b/tools/source/generic/poly.cxx
index 9f66f90a9064..dfa931a2433d 100644
--- a/tools/source/generic/poly.cxx
+++ b/tools/source/generic/poly.cxx
@@ -23,6 +23,7 @@
#include <tools/helpers.hxx>
#include <tools/stream.hxx>
#include <tools/vcompat.hxx>
+#include <tools/gen.hxx>
#include <poly.h>
#include <tools/line.hxx>
#include <tools/vector2d.hxx>
diff --git a/tools/source/generic/poly2.cxx b/tools/source/generic/poly2.cxx
index a6dff0239a24..869ac0aa9167 100644
--- a/tools/source/generic/poly2.cxx
+++ b/tools/source/generic/poly2.cxx
@@ -28,6 +28,7 @@
#include <tools/debug.hxx>
#include <tools/stream.hxx>
#include <tools/vcompat.hxx>
+#include <tools/gen.hxx>
#include <basegfx/polygon/b2dpolypolygon.hxx>
#include <basegfx/polygon/b2dpolygon.hxx>
#include <basegfx/polygon/b2dpolypolygoncutter.hxx>