Kaydet (Commit) b7f515fe authored tarafından Takeshi Abe's avatar Takeshi Abe

starmath: SvStream::ReadBytes() returns std::size_t, not sal_uLong

Change-Id: I734e653343dcc563f1eb2312e5136fa5efe0f5fa
Reviewed-on: https://gerrit.libreoffice.org/38701Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarTakeshi Abe <tabe@fixedpoint.jp>
üst 37d8ac12
...@@ -96,7 +96,7 @@ OUString SAL_CALL SmFilterDetect::detect( Sequence< PropertyValue >& lDescriptor ...@@ -96,7 +96,7 @@ OUString SAL_CALL SmFilterDetect::detect( Sequence< PropertyValue >& lDescriptor
aBuffer[nBufferSize] = 0; aBuffer[nBufferSize] = 0;
pInStrm->Seek( STREAM_SEEK_TO_BEGIN ); pInStrm->Seek( STREAM_SEEK_TO_BEGIN );
pInStrm->StartReadingUnicodeText( RTL_TEXTENCODING_DONTKNOW ); // avoid BOM marker pInStrm->StartReadingUnicodeText( RTL_TEXTENCODING_DONTKNOW ); // avoid BOM marker
sal_uLong nBytesRead = pInStrm->ReadBytes( aBuffer, nBufferSize ); auto nBytesRead = pInStrm->ReadBytes( 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