summaryrefslogtreecommitdiff
path: root/cppuhelper/source/servicefactory.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'cppuhelper/source/servicefactory.cxx')
-rw-r--r--cppuhelper/source/servicefactory.cxx6
1 files changed, 2 insertions, 4 deletions
diff --git a/cppuhelper/source/servicefactory.cxx b/cppuhelper/source/servicefactory.cxx
index ff4f41769b56..db8835f5c9e9 100644
--- a/cppuhelper/source/servicefactory.cxx
+++ b/cppuhelper/source/servicefactory.cxx
@@ -256,8 +256,7 @@ static void add_access_control_entries(
"single-user-id");
entry.value <<= ac_user;
context_values.push_back( entry );
- if (! ac_mode.equalsAsciiL(
- RTL_CONSTASCII_STRINGPARAM("single-user") ))
+ if ( ac_mode != "single-user" )
{
throw SecurityException(
OUSTR("set UNO_AC=single-user "
@@ -267,8 +266,7 @@ static void add_access_control_entries(
}
else
{
- if (! ac_mode.equalsAsciiL(
- RTL_CONSTASCII_STRINGPARAM("single-default-user") ))
+ if ( ac_mode != "single-default-user" )
{
throw SecurityException(
OUSTR("set UNO_AC=single-default-user "