summaryrefslogtreecommitdiff
path: root/oox/source/ole
diff options
context:
space:
mode:
authorNoel <noelgrandin@gmail.com>2020-10-02 13:36:56 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2020-10-03 08:13:09 +0200
commit1f40a488fcf95f90fdd18c41ef7041d475cf08a2 (patch)
treedb765704a71903a2cf1c57aedb173c466d87b15f /oox/source/ole
parent16a7f98f99d334ea865b800e0b32d6fed1483942 (diff)
loplugin:reducevarscope in oox
Change-Id: I6f2f91b821271415c4cec0eb1e694b00b3b2f59f Reviewed-on: https://gerrit.libreoffice.org/c/core/+/103836 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'oox/source/ole')
-rw-r--r--oox/source/ole/axcontrol.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/oox/source/ole/axcontrol.cxx b/oox/source/ole/axcontrol.cxx
index 81fce321d0ad..59f9d62fefc1 100644
--- a/oox/source/ole/axcontrol.cxx
+++ b/oox/source/ole/axcontrol.cxx
@@ -538,7 +538,6 @@ void ControlConverter::convertToAxState( PropertySet const & rPropSet,
sal_Int16 nState = API_STATE_DONTKNOW;
- bool bTriStateEnabled = false;
// need to use State for current state ( I think this is regardless of whether
// control is awt or not )
rPropSet.getProperty( nState, PROP_State );
@@ -552,6 +551,7 @@ void ControlConverter::convertToAxState( PropertySet const & rPropSet,
// tristate
if( bSupportsTriState )
{
+ bool bTriStateEnabled = false;
bool bPropertyExists = rPropSet.getProperty( bTriStateEnabled, PROP_TriState );
if( bPropertyExists && bTriStateEnabled )
nMultiSelect = AX_SELECTION_MULTI;