From eb5563e7e636a9856d4f1cc23d00a21193b9d0cc Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Fri, 16 Feb 2018 11:33:06 +0200 Subject: Revert "loplugin:changetoolsgen in canvas..cui" and reapply 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 f841dada1a5018897cce29ccf972da33ece4738c. Change-Id: Iff19e1fc99812c086b0a39b71a3f67b98e2f9c8f Reviewed-on: https://gerrit.libreoffice.org/49841 Tested-by: Jenkins Reviewed-by: Noel Grandin --- cui/source/options/dbregister.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'cui/source/options/dbregister.cxx') diff --git a/cui/source/options/dbregister.cxx b/cui/source/options/dbregister.cxx index 0fbbce7611bd..2ab19ca73d15 100644 --- a/cui/source/options/dbregister.cxx +++ b/cui/source/options/dbregister.cxx @@ -133,11 +133,11 @@ DbRegistrationOptionsPage::DbRegistrationOptionsPage( vcl::Window* pParent, cons rBar.SetSelectHdl( LINK( this, DbRegistrationOptionsPage, HeaderSelect_Impl ) ); rBar.SetEndDragHdl( LINK( this, DbRegistrationOptionsPage, HeaderEndDrag_Impl ) ); Size aSz; - aSz.Width() = TAB_WIDTH1; + aSz.setWidth( TAB_WIDTH1 ); rBar.InsertItem( ITEMID_TYPE, m_aTypeText, LogicToPixel( aSz, MapMode( MapUnit::MapAppFont ) ).Width(), HeaderBarItemBits::LEFT | HeaderBarItemBits::VCENTER | HeaderBarItemBits::CLICKABLE | HeaderBarItemBits::UPARROW ); - aSz.Width() = TAB_WIDTH2; + aSz.setWidth( TAB_WIDTH2 ); rBar.InsertItem( ITEMID_PATH, m_aPathText, LogicToPixel( aSz, MapMode( MapUnit::MapAppFont ) ).Width(), HeaderBarItemBits::LEFT | HeaderBarItemBits::VCENTER ); -- cgit