Kaydet (Commit) 34d6ec2c authored tarafından Caolán McNamara's avatar Caolán McNamara

cppcheck: variableScope

Change-Id: Ie77a988956927475ea384c36664ca7c3dd00b2a7
üst 938caeaf
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment