diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2013-03-19 11:32:06 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2013-03-19 11:32:20 +0100 |
commit | 4c0c23af21db0b72541674c2352df04f48774e81 (patch) | |
tree | fe5697fbc7f793de73531e50711c5b39d9825923 /configmgr | |
parent | 8f2cf65ec9a450441b92ed1f638eda26231a9be7 (diff) |
Simplify equalsIgnoreAsciiCaseAscii[L] calls
Change-Id: If5201bd772aed245e8f7f8b900d76ffe4ca57b49
Diffstat (limited to 'configmgr')
-rw-r--r-- | configmgr/source/configurationprovider.cxx | 16 |
1 files changed, 4 insertions, 12 deletions
diff --git a/configmgr/source/configurationprovider.cxx b/configmgr/source/configurationprovider.cxx index a73ec6bf2a81..84f9456b3b7e 100644 --- a/configmgr/source/configurationprovider.cxx +++ b/configmgr/source/configurationprovider.cxx @@ -204,17 +204,13 @@ Service::createInstanceWithArguments( } // For backwards compatibility, allow "nodepath" and "Locale" in any // case: - if (name.equalsIgnoreAsciiCaseAsciiL( - RTL_CONSTASCII_STRINGPARAM("nodepath"))) - { + if (name.equalsIgnoreAsciiCase("nodepath")) { if (!nodepath.isEmpty() || !(value >>= nodepath) || nodepath.isEmpty()) { badNodePath(); } - } else if (name.equalsIgnoreAsciiCaseAsciiL( - RTL_CONSTASCII_STRINGPARAM("locale"))) - { + } else if (name.equalsIgnoreAsciiCase("locale")) { if (!locale.isEmpty() || !(value >>= locale) || locale.isEmpty()) { @@ -441,9 +437,7 @@ Factory::createInstanceWithArgumentsAndContext( } // For backwards compatibility, allow "Locale" and (ignored) // "EnableAsync" in any case: - if (name.equalsIgnoreAsciiCaseAsciiL( - RTL_CONSTASCII_STRINGPARAM("locale"))) - { + if (name.equalsIgnoreAsciiCase("locale")) { if (!locale.isEmpty() || !(value >>= locale) || locale.isEmpty()) { @@ -453,9 +447,7 @@ Factory::createInstanceWithArgumentsAndContext( " one, non-empty, string Locale argument"), 0); } - } else if (!name.equalsIgnoreAsciiCaseAsciiL( - RTL_CONSTASCII_STRINGPARAM("enableasync"))) - { + } else if (!name.equalsIgnoreAsciiCase("enableasync")) { throw css::uno::Exception( OUString("com.sun.star.configuration.ConfigurationProvider" " factory: unknown argument ") + name, |