diff options
author | Caolán McNamara <caolanm@redhat.com> | 2011-09-24 00:36:53 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2011-09-26 10:18:39 +0100 |
commit | 2a3ce6ac68151a5a63c5b41a70bde7d9ffcd7e96 (patch) | |
tree | 8b40d86256c89465a4c04ab6192beefa98ad7b13 /basic | |
parent | ByteString->rtl::OStringBuffer (diff) | |
download | core-2a3ce6ac68151a5a63c5b41a70bde7d9ffcd7e96.tar.gz core-2a3ce6ac68151a5a63c5b41a70bde7d9ffcd7e96.zip |
ByteString->rtl::OStringBuffer
Diffstat (limited to 'basic')
-rw-r--r-- | basic/source/sbx/sbxscan.cxx | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/basic/source/sbx/sbxscan.cxx b/basic/source/sbx/sbxscan.cxx index 0a127f49360f..406366d38050 100644 --- a/basic/source/sbx/sbxscan.cxx +++ b/basic/source/sbx/sbxscan.cxx @@ -51,6 +51,7 @@ #include "basrid.hxx" #include "runtime.hxx" +#include <rtl/strbuf.hxx> #include <svl/zforlist.hxx> #include <comphelper/processfactory.hxx> @@ -112,13 +113,13 @@ SbxError ImpScan( const ::rtl::OUString& rWSrc, double& nVal, SbxDataType& rType short comma = 0; short ndig = 0; short ncdig = 0; // number of digits after decimal point - ByteString aSearchStr( "0123456789DEde" ); - aSearchStr += cNonIntntlComma; + rtl::OStringBuffer aSearchStr(RTL_CONSTASCII_STRINGPARAM("0123456789DEde")); + aSearchStr.append(cNonIntntlComma); if( cIntntlComma != cNonIntntlComma ) - aSearchStr += cIntntlComma; + aSearchStr.append(cIntntlComma); if( bOnlyIntntl ) - aSearchStr += cIntntl1000; - const char* pSearchStr = aSearchStr.GetBuffer(); + aSearchStr.append(cIntntl1000); + const char* pSearchStr = aSearchStr.getStr(); while( strchr( pSearchStr, *p ) && *p ) { if( bOnlyIntntl && *p == cIntntl1000 ) |