diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-07-30 12:16:31 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-07-31 08:25:07 +0200 |
commit | c9253818ec8252169c20450b41878be459568d95 (patch) | |
tree | 1f271151725042f33c3c8aa3988343bcd7f89e12 /jvmfwk/source | |
parent | 242a796a71e29a1d8cdc4dd71d2465b898db32ab (diff) |
loplugin:oncevar
extend oncevar to any POD type
Change-Id: Ia98ee0a67f183e40fb0c38477760124b2c411dc0
Reviewed-on: https://gerrit.libreoffice.org/40564
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'jvmfwk/source')
-rw-r--r-- | jvmfwk/source/fwkbase.cxx | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/jvmfwk/source/fwkbase.cxx b/jvmfwk/source/fwkbase.cxx index 2c24017f1846..155e07c813da 100644 --- a/jvmfwk/source/fwkbase.cxx +++ b/jvmfwk/source/fwkbase.cxx @@ -88,8 +88,6 @@ OUString getParamFirstUrl(OUString const & name) VendorSettings::VendorSettings(): m_xmlDocVendorSettingsFileUrl(BootParams::getVendorSettings()) { - OString sMsgExc("[Java framework] Error in constructor " - "VendorSettings::VendorSettings() (fwkbase.cxx)"); //Prepare the xml document and context OString sSettingsPath = getVendorSettingsPath(m_xmlDocVendorSettingsFileUrl); if (sSettingsPath.isEmpty()) @@ -113,7 +111,8 @@ VendorSettings::VendorSettings(): m_xmlPathContextVendorSettings, reinterpret_cast<xmlChar const *>("jf"), reinterpret_cast<xmlChar const *>(NS_JAVA_FRAMEWORK)); if (res == -1) - throw FrameworkException(JFW_E_ERROR, sMsgExc); + throw FrameworkException(JFW_E_ERROR, + "[Java framework] Error in constructor VendorSettings::VendorSettings() (fwkbase.cxx)"); } } @@ -480,8 +479,7 @@ OString makeClassPathOption(OUString const & sUserClassPath) { if (!sUserClassPath.isEmpty()) { - char szSep[] = {SAL_PATHSEPARATOR,0}; - sBufCP.appendAscii(szSep); + sBufCP.append(SAL_PATHSEPARATOR); } sBufCP.append(sAppCP); } |