From 08ab1f46b192a188935fdffbefdc9f3973583cdf Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Sat, 24 Feb 2018 13:47:25 +0200 Subject: loplugin:oncevar extend to tools/gen.hxx types Change-Id: I5c75875da44334569c02e2ff039b33c38397a0a2 Reviewed-on: https://gerrit.libreoffice.org/50283 Tested-by: Jenkins Reviewed-by: Noel Grandin --- vcl/source/window/menubarwindow.cxx | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'vcl/source/window/menubarwindow.cxx') diff --git a/vcl/source/window/menubarwindow.cxx b/vcl/source/window/menubarwindow.cxx index 56b1ad8fd6eb..18339eec8c11 100644 --- a/vcl/source/window/menubarwindow.cxx +++ b/vcl/source/window/menubarwindow.cxx @@ -602,8 +602,7 @@ static void ImplAddNWFSeparator(vcl::RenderContext& rRenderContext, const Size& // note: the menubar only provides the upper (dark) half of it, the rest (bright part) is drawn by the docking area rRenderContext.SetLineColor(rRenderContext.GetSettings().GetStyleSettings().GetSeparatorColor()); - Point aPt; - tools::Rectangle aRect(aPt, rSize); + tools::Rectangle aRect(Point(), rSize); rRenderContext.DrawLine(aRect.BottomLeft(), aRect.BottomRight()); } } @@ -920,8 +919,7 @@ void MenuBarWindow::Paint(vcl::RenderContext& rRenderContext, const tools::Recta Erase(rRenderContext); else { - Point aPt; - tools::Rectangle aCtrlRegion( aPt, aOutputSize ); + tools::Rectangle aCtrlRegion( Point(), aOutputSize ); rRenderContext.DrawNativeControl(ControlType::Menubar, ControlPart::Entire, aCtrlRegion, ControlState::ENABLED, aMenubarValue, OUString()); -- cgit