diff options
author | Caolán McNamara <caolanm@redhat.com> | 2011-09-18 13:36:11 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2011-09-19 09:59:21 +0100 |
commit | 94d8c0975852d7b12e4c8acf4ab1c7f1c1a73f61 (patch) | |
tree | 1d83a03cca3e821eb88b53146367bb3995c577a5 /svtools | |
parent | rework this in terms of read_uInt8s_AsOString (diff) | |
download | core-94d8c0975852d7b12e4c8acf4ab1c7f1c1a73f61.tar.gz core-94d8c0975852d7b12e4c8acf4ab1c7f1c1a73f61.zip |
rework this in terms of read_uInt8s_AsOString
Diffstat (limited to 'svtools')
-rw-r--r-- | svtools/source/filter/igif/gifread.cxx | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/svtools/source/filter/igif/gifread.cxx b/svtools/source/filter/igif/gifread.cxx index 6765937081d7..8e488e72c064 100644 --- a/svtools/source/filter/igif/gifread.cxx +++ b/svtools/source/filter/igif/gifread.cxx @@ -259,15 +259,12 @@ sal_Bool GIFReader::ReadExtension() // Appl.-Extension hat Laenge 11 if ( cSize == 0x0b ) { - ByteString aAppId; - ByteString aAppCode; - - rIStm.Read( aAppId.AllocBuffer( 8 ), 8 ); - rIStm.Read( aAppCode.AllocBuffer( 3 ), 3 ); + rtl::OString aAppId = read_uInt8s_AsOString(rIStm, 8); + rtl::OString aAppCode = read_uInt8s_AsOString(rIStm, 3); rIStm >> cSize; // NetScape-Extension - if( aAppId == "NETSCAPE" && aAppCode == "2.0" && cSize == 3 ) + if( aAppId.equalsL(RTL_CONSTASCII_STRINGPARAM("NETSCAPE")) && aAppCode.equalsL(RTL_CONSTASCII_STRINGPARAM("2.0")) && cSize == 3 ) { rIStm >> cByte; @@ -294,7 +291,7 @@ sal_Bool GIFReader::ReadExtension() else rIStm.SeekRel( -1 ); } - else if ( aAppId == "STARDIV " && aAppCode == "5.0" && cSize == 9 ) + else if ( aAppId.equalsL(RTL_CONSTASCII_STRINGPARAM("STARDIV ")) && aAppCode.equalsL(RTL_CONSTASCII_STRINGPARAM("5.0")) && cSize == 9 ) { rIStm >> cByte; |