diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2014-12-15 10:14:25 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2014-12-15 10:14:25 +0100 |
commit | ac97f3388dadfe0127ee2b5c97ccadfb9dd64f39 (patch) | |
tree | 22bb2161b60a5b5b58d0d926f76cc657cd858010 /sc/source/ui/unoobj/tokenuno.cxx | |
parent | f35f7b4fbcd91c1f0b64ec8f261aec19328f7596 (diff) |
sc: Use appropriate OUString functions on string constants
Change-Id: Ib4c0df8d7637bff7d7a45d24482fff4342169fae
Diffstat (limited to 'sc/source/ui/unoobj/tokenuno.cxx')
-rw-r--r-- | sc/source/ui/unoobj/tokenuno.cxx | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/sc/source/ui/unoobj/tokenuno.cxx b/sc/source/ui/unoobj/tokenuno.cxx index 207d69a15e43..a918eb3a73e1 100644 --- a/sc/source/ui/unoobj/tokenuno.cxx +++ b/sc/source/ui/unoobj/tokenuno.cxx @@ -192,11 +192,11 @@ void SAL_CALL ScFormulaParserObj::setPropertyValue( { SolarMutexGuard aGuard; OUString aString(aPropertyName); - if ( aString.equalsAscii( SC_UNO_COMPILEFAP ) ) + if ( aString == SC_UNO_COMPILEFAP ) { aValue >>= mbCompileFAP; } - else if ( aString.equalsAscii( SC_UNO_COMPILEENGLISH ) ) + else if ( aString == SC_UNO_COMPILEENGLISH ) { bool bOldEnglish = mbEnglish; if (aValue >>= mbEnglish) @@ -215,15 +215,15 @@ void SAL_CALL ScFormulaParserObj::setPropertyValue( else throw lang::IllegalArgumentException(); } - else if ( aString.equalsAscii( SC_UNO_FORMULACONVENTION ) ) + else if ( aString == SC_UNO_FORMULACONVENTION ) { aValue >>= mnConv; } - else if ( aString.equalsAscii( SC_UNO_IGNORELEADING ) ) + else if ( aString == SC_UNO_IGNORELEADING ) { aValue >>= mbIgnoreSpaces; } - else if ( aString.equalsAscii( SC_UNO_OPCODEMAP ) ) + else if ( aString == SC_UNO_OPCODEMAP ) { if (aValue >>= maOpCodeMapping) { @@ -235,7 +235,7 @@ void SAL_CALL ScFormulaParserObj::setPropertyValue( else throw lang::IllegalArgumentException(); } - else if ( aString.equalsAscii( SC_UNO_EXTERNALLINKS ) ) + else if ( aString == SC_UNO_EXTERNALLINKS ) { if (!(aValue >>= maExternalLinks)) throw lang::IllegalArgumentException(); @@ -251,27 +251,27 @@ uno::Any SAL_CALL ScFormulaParserObj::getPropertyValue( const OUString& aPropert SolarMutexGuard aGuard; uno::Any aRet; OUString aString(aPropertyName); - if ( aString.equalsAscii( SC_UNO_COMPILEFAP ) ) + if ( aString == SC_UNO_COMPILEFAP ) { aRet <<= mbCompileFAP; } - else if ( aString.equalsAscii( SC_UNO_COMPILEENGLISH ) ) + else if ( aString == SC_UNO_COMPILEENGLISH ) { aRet <<= mbEnglish; } - else if ( aString.equalsAscii( SC_UNO_FORMULACONVENTION ) ) + else if ( aString == SC_UNO_FORMULACONVENTION ) { aRet <<= mnConv; } - else if ( aString.equalsAscii( SC_UNO_IGNORELEADING ) ) + else if ( aString == SC_UNO_IGNORELEADING ) { aRet <<= mbIgnoreSpaces; } - else if ( aString.equalsAscii( SC_UNO_OPCODEMAP ) ) + else if ( aString == SC_UNO_OPCODEMAP ) { aRet <<= maOpCodeMapping; } - else if ( aString.equalsAscii( SC_UNO_EXTERNALLINKS ) ) + else if ( aString == SC_UNO_EXTERNALLINKS ) { aRet <<= maExternalLinks; } |