Kaydet (Commit) 0b2b3369 authored tarafından Markus Mohrhard's avatar Markus Mohrhard

declare variable when we use it

Change-Id: I7f85568318133b19ccd315ff9084efdd15b3eed7
Reviewed-on: https://gerrit.libreoffice.org/23165Reviewed-by: 's avatarMarkus Mohrhard <markus.mohrhard@googlemail.com>
Tested-by: 's avatarMarkus Mohrhard <markus.mohrhard@googlemail.com>
üst bb472d03
...@@ -1809,8 +1809,6 @@ void ExcelToSc::SetComplRow( ScComplexRefData &rCRD ) ...@@ -1809,8 +1809,6 @@ void ExcelToSc::SetComplRow( ScComplexRefData &rCRD )
void ExcelToSc::ReadExtensionArray( unsigned int n, XclImpStream& aIn ) void ExcelToSc::ReadExtensionArray( unsigned int n, XclImpStream& aIn )
{ {
ScMatrix* pMatrix;
sal_uInt8 nByte = aIn.ReaduInt8(); sal_uInt8 nByte = aIn.ReaduInt8();
sal_uInt16 nUINT16 = aIn.ReaduInt16(); sal_uInt16 nUINT16 = aIn.ReaduInt16();
...@@ -1827,7 +1825,7 @@ void ExcelToSc::ReadExtensionArray( unsigned int n, XclImpStream& aIn ) ...@@ -1827,7 +1825,7 @@ void ExcelToSc::ReadExtensionArray( unsigned int n, XclImpStream& aIn )
nRows = nUINT16; nRows = nUINT16;
} }
pMatrix = aPool.GetMatrix( n ); ScMatrix* pMatrix = aPool.GetMatrix( n );
if( nullptr != pMatrix ) if( nullptr != pMatrix )
{ {
......
...@@ -773,8 +773,6 @@ const TokenId TokenPool::StoreNlf( const ScSingleRefData& rTr ) ...@@ -773,8 +773,6 @@ const TokenId TokenPool::StoreNlf( const ScSingleRefData& rTr )
const TokenId TokenPool::StoreMatrix() const TokenId TokenPool::StoreMatrix()
{ {
ScMatrix* pM;
if( nElementAkt >= nElement ) if( nElementAkt >= nElement )
if (!GrowElement()) if (!GrowElement())
return static_cast<const TokenId>(nElementAkt+1); return static_cast<const TokenId>(nElementAkt+1);
...@@ -786,7 +784,7 @@ const TokenId TokenPool::StoreMatrix() ...@@ -786,7 +784,7 @@ const TokenId TokenPool::StoreMatrix()
pElement[ nElementAkt ] = nP_MatrixAkt; pElement[ nElementAkt ] = nP_MatrixAkt;
pType[ nElementAkt ] = T_Matrix; pType[ nElementAkt ] = T_Matrix;
pM = new ScFullMatrix( 0, 0 ); ScMatrix* pM = new ScFullMatrix( 0, 0 );
pM->IncRef( ); pM->IncRef( );
ppP_Matrix[ nP_MatrixAkt ] = pM; ppP_Matrix[ nP_MatrixAkt ] = pM;
......
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