From bddd6c77811e0489a5632437116f5eec356cc397 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Fri, 16 Feb 2018 13:01:37 +0200 Subject: Revert "loplugin:changetoolsgen in avmedia..basic" and reapply plugin because I (a) forgot to insert parentheses which changes the meaning of some expressions and (b) I now use the AdjustFoo calls when changing unary operations, which reads much better This reverts commit 1adb1a320a7e9832a41545bde13fd59d27ce7954. Change-Id: I52924b35008c8e4b44c8a6b6657cc3a1ac513886 Reviewed-on: https://gerrit.libreoffice.org/49848 Tested-by: Jenkins Reviewed-by: Noel Grandin --- basic/source/runtime/inputbox.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'basic') diff --git a/basic/source/runtime/inputbox.cxx b/basic/source/runtime/inputbox.cxx index 3ff12c04a24c..c7f52dc47334 100644 --- a/basic/source/runtime/inputbox.cxx +++ b/basic/source/runtime/inputbox.cxx @@ -92,7 +92,7 @@ void SvRTLInputBox::InitButtons( const Size& rDlgSize ) aCancel->SetSizePixel( LogicToPixel( Size( 45, 15) )); Point aPos( rDlgSize.Width()-45-10, 5 ); aOk->SetPosPixel( LogicToPixel( aPos )); - aPos.setY( aPos.Y() + 16 ); + aPos.AdjustY(16 ); aCancel->SetPosPixel( LogicToPixel( aPos )); aOk->SetClickHdl(LINK(this,SvRTLInputBox, OkHdl)); aCancel->SetClickHdl(LINK(this,SvRTLInputBox,CancelHdl)); @@ -123,8 +123,8 @@ void SvRTLInputBox::PositionPrompt(const OUString& rPrompt,const Size& rDlgSize) aPromptText->SetPosPixel( LogicToPixel(Point(5,5))); aPromptText->SetText( aText_ ); Size aSize( rDlgSize ); - aSize.setWidth( aSize.Width() - 70 ); - aSize.setHeight( aSize.Height() - 50 ); + aSize.AdjustWidth( -70 ); + aSize.AdjustHeight( -50 ); aPromptText->SetSizePixel( LogicToPixel(aSize)); } -- cgit v1.2.3