summaryrefslogtreecommitdiff
path: root/stoc/source/javavm/javavm.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'stoc/source/javavm/javavm.cxx')
-rw-r--r--stoc/source/javavm/javavm.cxx7
1 files changed, 3 insertions, 4 deletions
diff --git a/stoc/source/javavm/javavm.cxx b/stoc/source/javavm/javavm.cxx
index 71ffbb3fffb1..c6b3bd19dbf8 100644
--- a/stoc/source/javavm/javavm.cxx
+++ b/stoc/source/javavm/javavm.cxx
@@ -473,8 +473,7 @@ void getJavaPropsFromSafetySettings(
case 3: sVal = "none";
break;
}
- OUString sProperty("appletviewer.security.mode=");
- sProperty= sProperty + sVal;
+ OUString sProperty = "appletviewer.security.mode=" + sVal;
pjvm->pushProp(sProperty);
}
css::uno::Reference<css::registry::XRegistryKey> key_CheckSecurity= xRegistryRootKey->openKey(
@@ -484,9 +483,9 @@ void getJavaPropsFromSafetySettings(
bool val = static_cast<bool>(key_CheckSecurity->getLongValue());
OUString sProperty("stardiv.security.disableSecurity=");
if( val)
- sProperty= sProperty + "false";
+ sProperty += "false";
else
- sProperty= sProperty + "true";
+ sProperty += "true";
pjvm->pushProp( sProperty);
}
}