summaryrefslogtreecommitdiff
path: root/jvmfwk
diff options
context:
space:
mode:
Diffstat (limited to 'jvmfwk')
-rw-r--r--jvmfwk/inc/fwkbase.hxx2
-rw-r--r--jvmfwk/source/fwkbase.cxx6
2 files changed, 4 insertions, 4 deletions
diff --git a/jvmfwk/inc/fwkbase.hxx b/jvmfwk/inc/fwkbase.hxx
index 1c6ad983f47c..5f989cc08cee 100644
--- a/jvmfwk/inc/fwkbase.hxx
+++ b/jvmfwk/inc/fwkbase.hxx
@@ -85,7 +85,7 @@ JFW_MODE getMode();
/** creates the -Djava.class.path option with the complete classpath, including
the paths which are set by UNO_JAVA_JFW_CLASSPATH_URLS.
*/
-OString makeClassPathOption(OUString const& sUserClassPath);
+OString makeClassPathOption(std::u16string_view sUserClassPath);
OString getSettingsPath(const OUString& sURL);
diff --git a/jvmfwk/source/fwkbase.cxx b/jvmfwk/source/fwkbase.cxx
index 4c4b50725f2c..6864881aad7d 100644
--- a/jvmfwk/source/fwkbase.cxx
+++ b/jvmfwk/source/fwkbase.cxx
@@ -441,21 +441,21 @@ OUString getApplicationClassPath()
return buf.makeStringAndClear();
}
-OString makeClassPathOption(OUString const & sUserClassPath)
+OString makeClassPathOption(std::u16string_view sUserClassPath)
{
//Compose the class path
OString sPaths;
OUStringBuffer sBufCP(4096);
// append all user selected jars to the class path
- if (!sUserClassPath.isEmpty())
+ if (!sUserClassPath.empty())
sBufCP.append(sUserClassPath);
//append all jar libraries and components to the class path
OUString sAppCP = getApplicationClassPath();
if (!sAppCP.isEmpty())
{
- if (!sUserClassPath.isEmpty())
+ if (!sUserClassPath.empty())
{
sBufCP.append(SAL_PATHSEPARATOR);
}