diff options
author | Caolán McNamara <caolanm@redhat.com> | 2015-03-09 13:33:08 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2015-03-09 16:27:47 +0000 |
commit | 34d6ec2c6e6618beacac881ec28ab527b25558d1 (patch) | |
tree | 28c19512452719c2b6ea74af7130b05be5d72225 /basic/source | |
parent | 938caeaf5850b63ed74c1d8a4d95c3bedbb66298 (diff) |
cppcheck: variableScope
Change-Id: Ie77a988956927475ea384c36664ca7c3dd00b2a7
Diffstat (limited to 'basic/source')
-rw-r--r-- | basic/source/sbx/sbxstr.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/basic/source/sbx/sbxstr.cxx b/basic/source/sbx/sbxstr.cxx index bfd2b6223f79..990d1c724338 100644 --- a/basic/source/sbx/sbxstr.cxx +++ b/basic/source/sbx/sbxstr.cxx @@ -262,13 +262,13 @@ SbxArray* StringToByteArray(const OUString& rStr) sal_Int32 nArraySize = rStr.getLength() * 2; const sal_Unicode* pSrc = rStr.getStr(); SbxDimArray* pArray = new SbxDimArray(SbxBYTE); + if( nArraySize ) + { #if !HAVE_FEATURE_SCRIPTING - bool bIncIndex = false; + bool bIncIndex = false; #else - bool bIncIndex = ( IsBaseIndexOne() && SbiRuntime::isVBAEnabled() ); + bool bIncIndex = ( IsBaseIndexOne() && SbiRuntime::isVBAEnabled() ); #endif - if( nArraySize ) - { if( bIncIndex ) pArray->AddDim32( 1, nArraySize ); else |