summaryrefslogtreecommitdiff
path: root/starmath
diff options
context:
space:
mode:
authorTor Lillqvist <tml@collabora.com>2014-02-25 19:33:13 +0200
committerTor Lillqvist <tml@collabora.com>2014-02-25 19:33:13 +0200
commitaa273f05776ff6bb8e1f96d1cc3baf40a997da0e (patch)
tree13d8187758aef6d0bf48c75e2ef8e287d2f517fa /starmath
parent86709d62ab7d97a8337304ffa34ebca71e52cfb5 (diff)
WaE: declaration shadows a local variable
Change-Id: If7ecddb059fb0fae5de01666a8f088caf36bc32f
Diffstat (limited to 'starmath')
-rw-r--r--starmath/source/smdetect.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/starmath/source/smdetect.cxx b/starmath/source/smdetect.cxx
index 3d23031d8d8e..43aaea9dd69d 100644
--- a/starmath/source/smdetect.cxx
+++ b/starmath/source/smdetect.cxx
@@ -326,12 +326,12 @@ OUString SAL_CALL SmFilterDetect::detect( Sequence< PropertyValue >& lDescriptor
// 200 should be enough for the XML
// version, encoding and !DOCTYPE
// stuff I hope?
- const sal_uInt16 nSize = 200;
- sal_Char aBuffer[nSize+1];
- aBuffer[nSize] = 0;
+ const sal_uInt16 nBufferSize = 200;
+ sal_Char aBuffer[nBufferSize+1];
+ aBuffer[nBufferSize] = 0;
pStrm->Seek( STREAM_SEEK_TO_BEGIN );
pStrm->StartReadingUnicodeText(RTL_TEXTENCODING_DONTKNOW); // avoid BOM marker
- sal_uLong nBytesRead = pStrm->Read( aBuffer, nSize );
+ sal_uLong nBytesRead = pStrm->Read( aBuffer, nBufferSize );
if (nBytesRead >= 6)
{
bool bIsMathType = false;