Kaydet (Commit) b7b0035c authored tarafından Stephan Bergmann's avatar Stephan Bergmann

loplugin:staticmethods

Change-Id: Ia16605c8227573948e2ac750414e9dff3efc2f81
üst 7c9d6c6e
......@@ -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:
......
......@@ -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: */
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment