diff options
author | Thomas Arnhold <thomas@arnhold.org> | 2011-01-20 11:38:15 +0100 |
---|---|---|
committer | Thomas Arnhold <thomas@arnhold.org> | 2011-01-20 11:38:15 +0100 |
commit | 1a1bf0378692877a7c8dec9c879320fc7b53dd5d (patch) | |
tree | b1d8ef9bd0fcd635acb77c8b42b20844c22e3922 /pyuno/source | |
parent | 266c2d6b349be355560ba6dbf782cebbc4de8609 (diff) |
Replace suitable equalsAscii calls with equalsAsciiL.
Done with sed -i 's%\(\.equalsAscii\)(\(\s\?"[^"]\+"\)\(\s\?\))%\1L(\3RTL_CONSTASCII_STRINGPARAM(\2\3)\3)%g'.
Diffstat (limited to 'pyuno/source')
-rw-r--r-- | pyuno/source/module/pyuno_runtime.cxx | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/pyuno/source/module/pyuno_runtime.cxx b/pyuno/source/module/pyuno_runtime.cxx index dc11f204df82..26e09f2f6377 100644 --- a/pyuno/source/module/pyuno_runtime.cxx +++ b/pyuno/source/module/pyuno_runtime.cxx @@ -183,11 +183,11 @@ static void readLoggingConfig( sal_Int32 *pLevel, FILE **ppFile ) OUString str; if( bootstrapHandle.getFrom( USTR_ASCII( "PYUNO_LOGLEVEL" ), str ) ) { - if( str.equalsAscii( "NONE" ) ) + if( str.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM( "NONE" ) ) ) *pLevel = LogLevel::NONE; - else if( str.equalsAscii( "CALL" ) ) + else if( str.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM( "CALL" ) ) ) *pLevel = LogLevel::CALL; - else if( str.equalsAscii( "ARGS" ) ) + else if( str.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM( "ARGS" ) ) ) *pLevel = LogLevel::ARGS; else { @@ -200,9 +200,9 @@ static void readLoggingConfig( sal_Int32 *pLevel, FILE **ppFile ) *ppFile = stdout; if( bootstrapHandle.getFrom( USTR_ASCII( "PYUNO_LOGTARGET" ), str ) ) { - if( str.equalsAscii( "stdout" ) ) + if( str.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM( "stdout" ) ) ) *ppFile = stdout; - else if( str.equalsAscii( "stderr" ) ) + else if( str.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM( "stderr" ) ) ) *ppFile = stderr; else { |