diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2020-08-31 17:02:49 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2020-08-31 22:30:13 +0200 |
commit | d6ffa7670fcd88befb16de387a6a0edc896c18aa (patch) | |
tree | 474729779ed7204cfb838dba20e72248aec79d24 | |
parent | 81f91196b98af38e29af451b86c26a893a109abc (diff) |
Simplify some code involving SAL_PATHSEPARATOR and OString/OUStringBuffer
Change-Id: If01e7c0d7d87a544f6601174ce43b37c63cfbcb2
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/101746
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
-rw-r--r-- | jvmfwk/source/fwkbase.cxx | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/jvmfwk/source/fwkbase.cxx b/jvmfwk/source/fwkbase.cxx index 7f3cd0a132ae..df84d7c77f9e 100644 --- a/jvmfwk/source/fwkbase.cxx +++ b/jvmfwk/source/fwkbase.cxx @@ -252,8 +252,7 @@ OString BootParams::getClasspath() char * pCp = getenv("CLASSPATH"); if (pCp) { - char szSep[] = {SAL_PATHSEPARATOR,0}; - sClassPath += OStringLiteral(szSep) + pCp; + sClassPath += OStringChar(SAL_PATHSEPARATOR) + pCp; } SAL_INFO( "jfw.level2", @@ -415,7 +414,6 @@ OUString getApplicationClassPath() OUStringBuffer buf; sal_Int32 index = 0; - const char szClassPathSep[] = {SAL_PATHSEPARATOR,0}; do { OUString token( sParams.getToken( 0, ' ', index ).trim() ); @@ -428,7 +426,7 @@ OUString getApplicationClassPath() if (rc == osl_File_E_None && !systemPathElement.isEmpty()) { if (buf.getLength() > 0) - buf.append( szClassPathSep ); + buf.append( SAL_PATHSEPARATOR ); buf.append( systemPathElement ); } } |