diff options
author | Caolán McNamara <caolanm@redhat.com> | 2012-01-24 21:52:07 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2012-01-25 15:37:19 +0000 |
commit | 03e3a20868b971595481e6742725a1c80745e7b7 (patch) | |
tree | bde5b669189ce587df0265601a54563d6ff92585 /svtools/source/misc | |
parent | 39e54d04804d1d8ad0d0dc10aad8ef89c2ff1e40 (diff) |
ByteString->rtl::OString
Diffstat (limited to 'svtools/source/misc')
-rw-r--r-- | svtools/source/misc/imap2.cxx | 16 |
1 files changed, 6 insertions, 10 deletions
diff --git a/svtools/source/misc/imap2.cxx b/svtools/source/misc/imap2.cxx index 41dff428ed16..252346b48c95 100644 --- a/svtools/source/misc/imap2.cxx +++ b/svtools/source/misc/imap2.cxx @@ -261,14 +261,12 @@ sal_uLong ImageMap::ImpReadCERN( SvStream& rIStm, const String& rBaseURL ) void ImageMap::ImpReadCERNLine( const rtl::OString& rLine, const String& rBaseURL ) { - ByteString aStr( rLine ); - - aStr = comphelper::string::stripStart(aStr, ' '); + rtl::OString aStr = comphelper::string::stripStart(rLine, ' '); aStr = comphelper::string::stripStart(aStr, '\t'); aStr = comphelper::string::remove(aStr, ';'); - aStr.ToLowerAscii(); + aStr = aStr.toAsciiLowerCase(); - const char* pStr = aStr.GetBuffer(); + const char* pStr = aStr.getStr(); char cChar = *pStr++; // Anweisung finden @@ -405,14 +403,12 @@ sal_uLong ImageMap::ImpReadNCSA( SvStream& rIStm, const String& rBaseURL ) void ImageMap::ImpReadNCSALine( const rtl::OString& rLine, const String& rBaseURL ) { - ByteString aStr( rLine ); - - aStr = comphelper::string::stripStart(aStr, ' '); + rtl::OString aStr = comphelper::string::stripStart(rLine, ' '); aStr = comphelper::string::stripStart(aStr, '\t'); aStr = comphelper::string::remove(aStr, ';'); - aStr.ToLowerAscii(); + aStr = aStr.toAsciiLowerCase(); - const char* pStr = aStr.GetBuffer(); + const char* pStr = aStr.getStr(); char cChar = *pStr++; // Anweisung finden |