Kaydet (Commit) aa273f05 authored tarafından Tor Lillqvist's avatar Tor Lillqvist

WaE: declaration shadows a local variable

Change-Id: If7ecddb059fb0fae5de01666a8f088caf36bc32f
üst 86709d62
...@@ -326,12 +326,12 @@ OUString SAL_CALL SmFilterDetect::detect( Sequence< PropertyValue >& lDescriptor ...@@ -326,12 +326,12 @@ OUString SAL_CALL SmFilterDetect::detect( Sequence< PropertyValue >& lDescriptor
// 200 should be enough for the XML // 200 should be enough for the XML
// version, encoding and !DOCTYPE // version, encoding and !DOCTYPE
// stuff I hope? // stuff I hope?
const sal_uInt16 nSize = 200; const sal_uInt16 nBufferSize = 200;
sal_Char aBuffer[nSize+1]; sal_Char aBuffer[nBufferSize+1];
aBuffer[nSize] = 0; aBuffer[nBufferSize] = 0;
pStrm->Seek( STREAM_SEEK_TO_BEGIN ); pStrm->Seek( STREAM_SEEK_TO_BEGIN );
pStrm->StartReadingUnicodeText(RTL_TEXTENCODING_DONTKNOW); // avoid BOM marker 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) if (nBytesRead >= 6)
{ {
bool bIsMathType = false; bool bIsMathType = false;
......
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