diff options
author | Julien Nabet <serval2412@yahoo.fr> | 2013-02-12 21:24:03 +0100 |
---|---|---|
committer | Julien Nabet <serval2412@yahoo.fr> | 2013-02-12 21:24:25 +0100 |
commit | 56f4d7dc9d0a10dbe0bc2d55fb5fa931453c91db (patch) | |
tree | 5d2a05570034d03369e60473d5fce671775c219d /jvmfwk/source/fwkbase.cxx | |
parent | 1aaf9a9b362188eb706eae2b6b93df35266047d3 (diff) |
Some cppcheck cleaning
Change-Id: I8609949377181f8edb30ac07b2791cfcd079fc7d
Diffstat (limited to 'jvmfwk/source/fwkbase.cxx')
-rw-r--r-- | jvmfwk/source/fwkbase.cxx | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/jvmfwk/source/fwkbase.cxx b/jvmfwk/source/fwkbase.cxx index a25140111563..5a6693de7b92 100644 --- a/jvmfwk/source/fwkbase.cxx +++ b/jvmfwk/source/fwkbase.cxx @@ -366,7 +366,6 @@ rtl::OString BootParams::getClasspath() { rtl::OString sClassPath; rtl::OUString sCP; - char szSep[] = {SAL_PATHSEPARATOR,0}; if (Bootstrap::get()->getFrom( rtl::OUString(RTL_CONSTASCII_USTRINGPARAM(UNO_JAVA_JFW_CLASSPATH)), sCP) == sal_True) @@ -387,6 +386,7 @@ rtl::OString BootParams::getClasspath() char * pCp = getenv("CLASSPATH"); if (pCp) { + char szSep[] = {SAL_PATHSEPARATOR,0}; sClassPath += rtl::OString(szSep) + rtl::OString(pCp); } #if OSL_DEBUG_LEVEL >=2 @@ -602,7 +602,6 @@ rtl::OString makeClassPathOption(OUString const & sUserClassPath) //Compose the class path rtl::OString sPaths; rtl::OUStringBuffer sBufCP(4096); - char szSep[] = {SAL_PATHSEPARATOR,0}; // append all user selected jars to the class path if (!sUserClassPath.isEmpty()) @@ -613,7 +612,10 @@ rtl::OString makeClassPathOption(OUString const & sUserClassPath) if (!sAppCP.isEmpty()) { if (!sUserClassPath.isEmpty()) + { + char szSep[] = {SAL_PATHSEPARATOR,0}; sBufCP.appendAscii(szSep); + } sBufCP.append(sAppCP); } |