diff options
Diffstat (limited to 'desktop/source/deployment/manager/dp_properties.cxx')
-rw-r--r-- | desktop/source/deployment/manager/dp_properties.cxx | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/desktop/source/deployment/manager/dp_properties.cxx b/desktop/source/deployment/manager/dp_properties.cxx index 92d7191111d3..75a499ffda9e 100644 --- a/desktop/source/deployment/manager/dp_properties.cxx +++ b/desktop/source/deployment/manager/dp_properties.cxx @@ -103,17 +103,14 @@ OUString ExtensionProperties::getPropertyValue(css::beans::NamedValue const & v) void ExtensionProperties::write() { ::ucbhelper::Content contentProps(m_propFileUrl, m_xCmdEnv, m_xContext); - OUStringBuffer buf; + OUString buf; if (m_prop_suppress_license) { - buf.append(PROP_SUPPRESS_LICENSE); - buf.append("="); - buf.append(*m_prop_suppress_license); + buf = OUString::Concat(PROP_SUPPRESS_LICENSE) + "=" + *m_prop_suppress_license; } - OString stamp = OUStringToOString( - buf.makeStringAndClear(), RTL_TEXTENCODING_UTF8); + OString stamp = OUStringToOString(buf, RTL_TEXTENCODING_UTF8); Reference<css::io::XInputStream> xData( ::xmlscript::createInputStream( reinterpret_cast<sal_Int8 const *>(stamp.getStr()), |