diff options
author | Takeshi Abe <tabe@fixedpoint.jp> | 2012-02-27 19:07:35 +0900 |
---|---|---|
committer | Takeshi Abe <tabe@fixedpoint.jp> | 2012-02-28 01:55:00 +0900 |
commit | 660e4481a4ab00b1077dbc5e26568b7f6f05b2ba (patch) | |
tree | 7c68b7efb5305d692662e7bdae76607cc7b95e67 /stoc/source | |
parent | fdo44516 cleanup of direct use of color in code (diff) | |
download | core-660e4481a4ab00b1077dbc5e26568b7f6f05b2ba.tar.gz core-660e4481a4ab00b1077dbc5e26568b7f6f05b2ba.zip |
Avoid temporary rtl::OUString
in scripting / sdext / starmath / stoc / svtools / svx
Diffstat (limited to 'stoc/source')
-rw-r--r-- | stoc/source/inspect/introspection.cxx | 2 | ||||
-rw-r--r-- | stoc/source/javavm/javavm.cxx | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/stoc/source/inspect/introspection.cxx b/stoc/source/inspect/introspection.cxx index 2d4d13bbdf31..a1f239f84084 100644 --- a/stoc/source/inspect/introspection.cxx +++ b/stoc/source/inspect/introspection.cxx @@ -2346,7 +2346,7 @@ rtl::Reference< IntrospectionAccessStatic_Impl > ImplIntrospection::implInspect( } else { - if( aMethName != OUString( RTL_CONSTASCII_USTRINGPARAM("queryInterface")) ) + if( !aMethName.equalsAsciiL(RTL_CONSTASCII_STRINGPARAM("queryInterface")) ) { rMethodConcept_i |= MethodConcept::DANGEROUS; continue; diff --git a/stoc/source/javavm/javavm.cxx b/stoc/source/javavm/javavm.cxx index 2c900d27c2db..25d0000fea0d 100644 --- a/stoc/source/javavm/javavm.cxx +++ b/stoc/source/javavm/javavm.cxx @@ -1347,7 +1347,7 @@ void SAL_CALL JavaVirtualMachine::elementReplaced( const jchar* jcharName= pJNIEnv->GetStringChars( jsClass, NULL); rtl::OUString sName( jcharName); jboolean bIsSandbox; - if (sName == rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("com.sun.star.lib.sandbox.SandboxSecurity"))) + if (sName.equalsAsciiL(RTL_CONSTASCII_STRINGPARAM("com.sun.star.lib.sandbox.SandboxSecurity"))) bIsSandbox= JNI_TRUE; else bIsSandbox= JNI_FALSE; |