summaryrefslogtreecommitdiff
path: root/cppcanvas/source
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2014-06-12 14:06:28 +0200
committerNoel Grandin <noel@peralex.com>2014-06-17 10:55:17 +0200
commit3e82897353e576dc6e3fbf55371fda5a0c3415df (patch)
tree71c2f03128885000efae1852dccb504f8355c79e /cppcanvas/source
parentec95abf2d8afeec38c9225ea49caa0e08d82b504 (diff)
improve the inlinesimplememberfunctions clang plugin
Change-Id: I6d5a952901648e01904ef5c37f953c517304d31e
Diffstat (limited to 'cppcanvas/source')
-rw-r--r--cppcanvas/source/inc/canvasgraphichelper.hxx4
-rw-r--r--cppcanvas/source/tools/canvasgraphichelper.cxx8
-rw-r--r--cppcanvas/source/wrapper/implspritecanvas.cxx4
-rw-r--r--cppcanvas/source/wrapper/implspritecanvas.hxx2
4 files changed, 3 insertions, 15 deletions
diff --git a/cppcanvas/source/inc/canvasgraphichelper.hxx b/cppcanvas/source/inc/canvasgraphichelper.hxx
index e408e490aba4..031b9e7b5302 100644
--- a/cppcanvas/source/inc/canvasgraphichelper.hxx
+++ b/cppcanvas/source/inc/canvasgraphichelper.hxx
@@ -58,8 +58,8 @@ namespace cppcanvas
protected:
// for our clients
// ===============
- CanvasSharedPtr getCanvas() const;
- ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XGraphicDevice > getGraphicDevice() const;
+ CanvasSharedPtr getCanvas() const { return mpCanvas; }
+ ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XGraphicDevice > getGraphicDevice() const { return mxGraphicDevice; }
const ::com::sun::star::rendering::RenderState& getRenderState() const;
private:
diff --git a/cppcanvas/source/tools/canvasgraphichelper.cxx b/cppcanvas/source/tools/canvasgraphichelper.cxx
index 562be9715d58..43231ed347d5 100644
--- a/cppcanvas/source/tools/canvasgraphichelper.cxx
+++ b/cppcanvas/source/tools/canvasgraphichelper.cxx
@@ -115,15 +115,7 @@ namespace cppcanvas
return static_cast<CompositeOp>(maRenderState.CompositeOperation);
}
- CanvasSharedPtr CanvasGraphicHelper::getCanvas() const
- {
- return mpCanvas;
- }
- uno::Reference< rendering::XGraphicDevice > CanvasGraphicHelper::getGraphicDevice() const
- {
- return mxGraphicDevice;
- }
}
}
diff --git a/cppcanvas/source/wrapper/implspritecanvas.cxx b/cppcanvas/source/wrapper/implspritecanvas.cxx
index 78701786fe15..9138d1d724f4 100644
--- a/cppcanvas/source/wrapper/implspritecanvas.cxx
+++ b/cppcanvas/source/wrapper/implspritecanvas.cxx
@@ -42,10 +42,6 @@ namespace cppcanvas
maTransformation = rViewTransform;
}
- ::basegfx::B2DHomMatrix ImplSpriteCanvas::TransformationArbiter::getTransformation() const
- {
- return maTransformation;
- }
ImplSpriteCanvas::ImplSpriteCanvas( const uno::Reference< rendering::XSpriteCanvas >& rCanvas ) :
diff --git a/cppcanvas/source/wrapper/implspritecanvas.hxx b/cppcanvas/source/wrapper/implspritecanvas.hxx
index 8a0223e1bee7..c61bcd8ddd05 100644
--- a/cppcanvas/source/wrapper/implspritecanvas.hxx
+++ b/cppcanvas/source/wrapper/implspritecanvas.hxx
@@ -71,7 +71,7 @@ namespace cppcanvas
TransformationArbiter();
void setTransformation( const ::basegfx::B2DHomMatrix& rViewTransform );
- ::basegfx::B2DHomMatrix getTransformation() const;
+ ::basegfx::B2DHomMatrix getTransformation() const { return maTransformation; }
private:
::basegfx::B2DHomMatrix maTransformation;