diff options
author | Noel Grandin <noel@peralex.com> | 2013-11-20 13:30:38 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2013-11-20 13:56:08 +0200 |
commit | 30ac3942b44b8f903180488f87e1df4e02ff88e8 (patch) | |
tree | ee0681adcfaf3c63212bc600dc482d4256806700 /extensions/source | |
parent | acebbee971136e6ee0a7bc75bd57d937d6e1c295 (diff) |
remove RTL_CONSTASCII_STRINGPARAM in OString::matchL calls
Convert code like:
if (aValue.matchL(RTL_CONSTASCII_STRINGPARAM("BOOL=")))
to:
if (aValue.startsWith("BOOL="))
Change-Id: I385d10fd486d6a3e5f81f4a28088d913fc2f0d26
Diffstat (limited to 'extensions/source')
-rw-r--r-- | extensions/source/scanner/sanedlg.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/extensions/source/scanner/sanedlg.cxx b/extensions/source/scanner/sanedlg.cxx index fbc031894f94..57fa03e9e624 100644 --- a/extensions/source/scanner/sanedlg.cxx +++ b/extensions/source/scanner/sanedlg.cxx @@ -1200,18 +1200,18 @@ sal_Bool SaneDlg::LoadState() if( nOption == -1 ) continue; - if (aValue.matchL(RTL_CONSTASCII_STRINGPARAM("BOOL="))) + if (aValue.startsWith("BOOL=")) { aValue = aValue.copy(RTL_CONSTASCII_LENGTH("BOOL=")); sal_Bool aBOOL = (sal_Bool)aValue.toInt32(); mrSane.SetOptionValue( nOption, aBOOL ); } - else if (aValue.matchL(RTL_CONSTASCII_STRINGPARAM("STRING="))) + else if (aValue.startsWith("STRING=")) { aValue = aValue.copy(RTL_CONSTASCII_LENGTH("STRING=")); mrSane.SetOptionValue(nOption,OStringToOUString(aValue, osl_getThreadTextEncoding()) ); } - else if (aValue.matchL(RTL_CONSTASCII_STRINGPARAM("NUMERIC="))) + else if (aValue.startsWith("NUMERIC=")) { aValue = aValue.copy(RTL_CONSTASCII_LENGTH("NUMERIC=")); |