From 7d87349bde54febf25ce6b3a19e13ab545913250 Mon Sep 17 00:00:00 2001 From: Matteo Casalin Date: Sun, 30 Mar 2014 09:36:21 +0200 Subject: This file level variable can be static Change-Id: I77d59760e80978d22d8f3cfeaed1c133003de2af --- sw/source/ui/fldui/fldref.cxx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'sw/source/ui') diff --git a/sw/source/ui/fldui/fldref.cxx b/sw/source/ui/fldui/fldref.cxx index 8820f866fb04..b7a38fffb989 100644 --- a/sw/source/ui/fldui/fldref.cxx +++ b/sw/source/ui/fldui/fldref.cxx @@ -43,7 +43,7 @@ #define REFFLDFLAG_HEADING 0x7100 #define REFFLDFLAG_NUMITEM 0x7200 -sal_uInt16 nFldDlgFmtSel = 0; +static sal_uInt16 nFldDlgFmtSel = 0; #define USER_DATA_VERSION_1 "1" #define USER_DATA_VERSION USER_DATA_VERSION_1 @@ -353,7 +353,8 @@ IMPL_LINK_NOARG(SwFldRefPage, TypeHdl) // fill selection-ListBox UpdateSubType(); - sal_Bool bName = sal_False; nFldDlgFmtSel = 0; + sal_Bool bName = sal_False; + nFldDlgFmtSel = 0; if ( ( !IsFldEdit() || m_pSelectionLB->GetEntryCount() ) && nOld != LISTBOX_ENTRY_NOTFOUND ) -- cgit