diff options
author | Caolán McNamara <caolanm@redhat.com> | 2011-08-14 01:37:52 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2011-08-15 09:21:48 +0100 |
commit | 9124003eb1e398957a85c5c009ac5eddf5e6f28e (patch) | |
tree | d1348216600b18f3daa08224a4d4492b53337813 /basic | |
parent | SvByteStringsSortDtor is now finally gone (diff) | |
download | core-9124003eb1e398957a85c5c009ac5eddf5e6f28e.tar.gz core-9124003eb1e398957a85c5c009ac5eddf5e6f28e.zip |
ByteString::IsNumericAscii->comphelper::string::isAsciiDecimalString
shrink ByteString api, remove need for intermediate OString/ByteString
with random-ish encoding solely for check
Diffstat (limited to 'basic')
-rw-r--r-- | basic/source/app/app.cxx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/basic/source/app/app.cxx b/basic/source/app/app.cxx index f605e9510813..6509ad8a54ff 100644 --- a/basic/source/app/app.cxx +++ b/basic/source/app/app.cxx @@ -61,6 +61,7 @@ #include <ucbhelper/configurationkeys.hxx> #include <comphelper/regpathhelper.hxx> #include <comphelper/processfactory.hxx> +#include <comphelper/string.hxx> #include <com/sun/star/beans/PropertyValue.hpp> #include <com/sun/star/lang/XComponent.hpp> #include <cppuhelper/bootstrap.hxx> @@ -374,11 +375,11 @@ IMPL_LINK( BasicApp, LateInit, void *, pDummy ) { if ( (i+1) < Application::GetCommandLineParamCount() ) { - if ( ByteString( Application::GetCommandLineParam( i+1 ), osl_getThreadTextEncoding() ).IsNumericAscii() ) + if ( comphelper::string::isAsciiDecimalString(Application::GetCommandLineParam(i+1)) ) { MsgEdit::SetMaxLogLen( sal::static_int_cast< sal_uInt16 >( Application::GetCommandLineParam( i+1 ).ToInt32() ) ); } - i++; + ++i; } } } |