diff options
author | Jan Holesovsky <kendy@collabora.com> | 2014-03-19 11:11:15 +0100 |
---|---|---|
committer | Jan Holesovsky <kendy@collabora.com> | 2014-03-19 12:29:02 +0100 |
commit | 24da9e2538dc8f80fb6ac6d498992f9093495b22 (patch) | |
tree | 90c9440a3e50f9013cd738b37efcda8c71e083da /drawinglayer | |
parent | 3e57225929a12fb3d7cecbf662bb2d4605621da2 (diff) |
Use sane indentation in new files.
Change-Id: Ida89284c00946d3972c4e45a5453ccfdff99713f
Diffstat (limited to 'drawinglayer')
-rw-r--r-- | drawinglayer/source/primitive2d/openglprimitive2d.cxx | 32 |
1 files changed, 13 insertions, 19 deletions
diff --git a/drawinglayer/source/primitive2d/openglprimitive2d.cxx b/drawinglayer/source/primitive2d/openglprimitive2d.cxx index 48724dfcf5b3..3ed333b830a5 100644 --- a/drawinglayer/source/primitive2d/openglprimitive2d.cxx +++ b/drawinglayer/source/primitive2d/openglprimitive2d.cxx @@ -10,29 +10,23 @@ #include <drawinglayer/primitive2d/openglprimitive2d.hxx> #include <svx/sdr/primitive2d/svx_primitivetypes2d.hxx> +using namespace drawinglayer::primitive2d; -namespace drawinglayer +OpenGLPrimitive2D::OpenGLPrimitive2D(const Point& rPos) + : m_aPos(rPos) { - namespace primitive2d - { - - OpenGLPrimitive2D::OpenGLPrimitive2D(const Point& rPos) - : m_aPos(rPos) - { - } - - bool OpenGLPrimitive2D::operator==( const BasePrimitive2D& rPrimitive ) const - { - if(BasePrimitive2D::operator==(rPrimitive)) - { - const OpenGLPrimitive2D& rCompare = static_cast< const OpenGLPrimitive2D& >(rPrimitive); - return m_aPos == rCompare.getPos(); - } - return false; - } +} - ImplPrimitive2DIDBlock(OpenGLPrimitive2D, PRIMITIVE2D_ID_OPENGLPRIMITIVE2D) +bool OpenGLPrimitive2D::operator==( const BasePrimitive2D& rPrimitive ) const +{ + if(BasePrimitive2D::operator==(rPrimitive)) + { + const OpenGLPrimitive2D& rCompare = static_cast< const OpenGLPrimitive2D& >(rPrimitive); + return m_aPos == rCompare.getPos(); } + return false; } +ImplPrimitive2DIDBlock(OpenGLPrimitive2D, PRIMITIVE2D_ID_OPENGLPRIMITIVE2D) + /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |