diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2016-09-27 15:24:12 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2016-09-27 15:47:57 +0200 |
commit | 2c5934b1a10f36525be1220db062d1738b6aac62 (patch) | |
tree | a7be0b257b21e363aa5cae991036b88ea99fbb38 /framework/source | |
parent | 9b8e77e2936d3dc44450a68a80de39658d69cd17 (diff) |
Reduce var scope
Change-Id: I5b5ea9968c7648e38a5cacda5e1f6ba8bea78749
Diffstat (limited to 'framework/source')
-rw-r--r-- | framework/source/services/substitutepathvars.cxx | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/framework/source/services/substitutepathvars.cxx b/framework/source/services/substitutepathvars.cxx index dd1747aaf9f7..bc945636b2f1 100644 --- a/framework/source/services/substitutepathvars.cxx +++ b/framework/source/services/substitutepathvars.cxx @@ -714,13 +714,11 @@ SubstitutePathVariables::SubstitutePathVariables( const Reference< XComponentCon SubstitutePathVariables_BASE(m_aMutex), m_xContext( xContext ) { - int i; - SetPredefinedPathVariables(); m_aImpl.GetSharePointsRules( m_aSubstVarMap ); // Init the predefined/fixed variable to index hash map - for ( i = 0; i < PREDEFVAR_COUNT; i++ ) + for ( int i = 0; i < PREDEFVAR_COUNT; i++ ) { // Store variable name into struct of predefined/fixed variables m_aPreDefVars.m_FixedVarNames[i] = OUString::createFromAscii( aFixedVarTable[i].pVarName ); @@ -731,7 +729,7 @@ SubstitutePathVariables::SubstitutePathVariables( const Reference< XComponentCon } // Sort predefined/fixed variable to path length - for ( i = 0; i < PREDEFVAR_COUNT; i++ ) + for ( int i = 0; i < PREDEFVAR_COUNT; i++ ) { if (( i != PREDEFVAR_WORKDIRURL ) && ( i != PREDEFVAR_PATH )) { |