summaryrefslogtreecommitdiff
path: root/basic
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2011-09-24 00:36:53 +0100
committerCaolán McNamara <caolanm@redhat.com>2011-09-26 10:18:39 +0100
commit2a3ce6ac68151a5a63c5b41a70bde7d9ffcd7e96 (patch)
tree8b40d86256c89465a4c04ab6192beefa98ad7b13 /basic
parent8712fbf2a6b1905697e4bbe3a1ff1ec375bc67b2 (diff)
ByteString->rtl::OStringBuffer
Diffstat (limited to 'basic')
-rw-r--r--basic/source/sbx/sbxscan.cxx11
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 )