summaryrefslogtreecommitdiff
path: root/basic
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2011-08-19 00:01:42 +0100
committerCaolán McNamara <caolanm@redhat.com>2011-08-19 09:30:44 +0100
commit8d4b87b7b294d5538a539a9640a19a5b13c6da4f (patch)
treef9cc16420648acf4e03885d5828e128d19e2660a /basic
parentd1fb13adf9ab73e53851e5d56cbbbe33bcdcd82c (diff)
use preferred tokenizer
Diffstat (limited to 'basic')
-rw-r--r--basic/source/app/brkpnts.cxx13
1 files changed, 7 insertions, 6 deletions
diff --git a/basic/source/app/brkpnts.cxx b/basic/source/app/brkpnts.cxx
index 57406feec54d..920e5ad0eef5 100644
--- a/basic/source/app/brkpnts.cxx
+++ b/basic/source/app/brkpnts.cxx
@@ -220,15 +220,16 @@ void BreakpointWindow::LoadBreakpoints( String aFilename )
aConfig.SetGroup("Breakpoints");
- ByteString aBreakpoints;
- aBreakpoints = aConfig.ReadKey( ByteString( aFilename, RTL_TEXTENCODING_UTF8 ) );
+ rtl::OString aBreakpoints =
+ aConfig.ReadKey(rtl::OUStringToOString(aFilename, RTL_TEXTENCODING_UTF8));
- xub_StrLen i;
-
- for ( i = 0 ; i < aBreakpoints.GetTokenCount( ';' ) ; i++ )
+ sal_Int32 nIndex = 0;
+ do
{
- InsertBreakpoint( (sal_uInt16)aBreakpoints.GetToken( i, ';' ).ToInt32() );
+ rtl::OString aBreakpoint = aBreakpoints.getToken(0, ';', nIndex);
+ InsertBreakpoint(static_cast<sal_uInt16>(aBreakpoint.toInt32()));
}
+ while ( nIndex >= 0 );
}