summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-05-13 09:32:50 +0200
committerStephan Bergmann <sbergman@redhat.com>2015-05-13 09:33:23 +0200
commitb7b0035c5f1267da8c178ebc9a48415cbb3feb0c (patch)
treecc56e611b478152e064d0116710abf75f67c3863
parent7c9d6c6e28adfd372791e2195ff4d830bad6b012 (diff)
loplugin:staticmethods
Change-Id: Ia16605c8227573948e2ac750414e9dff3efc2f81
-rw-r--r--include/svx/swframeexample.hxx1
-rw-r--r--svx/source/dialog/swframeexample.cxx22
2 files changed, 12 insertions, 11 deletions
diff --git a/include/svx/swframeexample.hxx b/include/svx/swframeexample.hxx
index 5a813c72301b..13c40fefd980 100644
--- a/include/svx/swframeexample.hxx
+++ b/include/svx/swframeexample.hxx
@@ -66,7 +66,6 @@ class SVX_DLLPUBLIC SvxSwFrameExample : public vcl::Window
void CalcBoundRect_Impl(Rectangle &rRect);
Rectangle DrawInnerFrame_Impl(vcl::RenderContext& rRenderContext, const Rectangle &rRect, const Color &rFillColor, const Color &rBorderColor);
- void DrawRect_Impl(vcl::RenderContext& rRenderContext, const Rectangle &rRect, const Color &rFillColor, const Color &rLineColor);
virtual void Paint(vcl::RenderContext& rRenderContext, const Rectangle&) SAL_OVERRIDE;
virtual Size GetOptimalSize() const SAL_OVERRIDE;
protected:
diff --git a/svx/source/dialog/swframeexample.cxx b/svx/source/dialog/swframeexample.cxx
index 2ed2c18413fc..e31638129409 100644
--- a/svx/source/dialog/swframeexample.cxx
+++ b/svx/source/dialog/swframeexample.cxx
@@ -35,6 +35,18 @@ using namespace ::com::sun::star::text;
#define FLYINFLY_BORDER 3
#define DEMOTEXT "Ij"
+namespace {
+
+void DrawRect_Impl(vcl::RenderContext& rRenderContext, const Rectangle &rRect,
+ const Color &rFillColor, const Color &rLineColor)
+{
+ rRenderContext.SetFillColor(rFillColor);
+ rRenderContext.SetLineColor(rLineColor);
+ rRenderContext.DrawRect(rRect);
+}
+
+}
+
SvxSwFrameExample::SvxSwFrameExample( vcl::Window *pParent, WinBits nStyle ) :
Window(pParent, nStyle),
@@ -705,14 +717,4 @@ void SvxSwFrameExample::SetRelPos(const Point& rP)
aRelPos.Y() = -5;
}
-void SvxSwFrameExample::DrawRect_Impl(vcl::RenderContext& rRenderContext, const Rectangle &rRect,
- const Color &rFillColor, const Color &rLineColor)
-{
- rRenderContext.SetFillColor(rFillColor);
- rRenderContext.SetLineColor(rLineColor);
- rRenderContext.DrawRect(rRect);
-}
-
-
-
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */