From 38187ec15b6cbaedcadcbd8f3bcb632a5c6be88f Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Thu, 6 Dec 2018 11:37:51 +0200 Subject: loplugin:singlevalfields extend to all static vars Change-Id: Ic238bb5291539fd1b7e98cb4afc9b25f37e7d528 Reviewed-on: https://gerrit.libreoffice.org/64710 Tested-by: Jenkins Reviewed-by: Noel Grandin --- basctl/source/basicide/baside2b.cxx | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'basctl') diff --git a/basctl/source/basicide/baside2b.cxx b/basctl/source/basicide/baside2b.cxx index 99208550315b..7ddaa8a81875 100644 --- a/basctl/source/basicide/baside2b.cxx +++ b/basctl/source/basicide/baside2b.cxx @@ -66,7 +66,7 @@ long const nBasePad = 2; long const nCursorPad = 5; long nVirtToolBoxHeight; // inited in WatchWindow, used in Stackwindow -long nHeaderBarHeight; +static const long nHeaderBarHeight = 16; // Returns pBase converted to SbxVariable if valid and is not an SbxMethod. SbxVariable* IsSbxVariable (SbxBase* pBase) @@ -1581,8 +1581,6 @@ WatchWindow::WatchWindow (Layout* pParent) if ( nRWBtnSize > nVirtToolBoxHeight ) nVirtToolBoxHeight = nRWBtnSize; - nHeaderBarHeight = 16; - aTreeListBox->SetHelpId(HID_BASICIDE_WATCHWINDOW_LIST); aTreeListBox->EnableInplaceEditing(true); aTreeListBox->SetSelectHdl( LINK( this, WatchWindow, TreeListHdl ) ); -- cgit