diff options
author | Vladimir Glazounov <vg@openoffice.org> | 2008-03-18 11:22:17 +0000 |
---|---|---|
committer | Vladimir Glazounov <vg@openoffice.org> | 2008-03-18 11:22:17 +0000 |
commit | bd76e4945aa41f118efc3a72c67e6df8a16b1a79 (patch) | |
tree | b54d4218e620b2d7fc5ab763f04a2522ba4b8ae6 /jvmfwk | |
parent | d4e31822af121cd4c3fd2eb0b5001a46071d2e2e (diff) |
INTEGRATION: CWS sb83 (1.10.32); FILE MERGED
2008/01/07 15:26:30 sb 1.10.32.1: #i84985# support multiple URLs in UNO_JAVA_JFW_USER|SHARED_DATA, ignoring all but the first
Diffstat (limited to 'jvmfwk')
-rw-r--r-- | jvmfwk/source/fwkbase.cxx | 17 |
1 files changed, 13 insertions, 4 deletions
diff --git a/jvmfwk/source/fwkbase.cxx b/jvmfwk/source/fwkbase.cxx index 77ec7906a8c0..1071996a6923 100644 --- a/jvmfwk/source/fwkbase.cxx +++ b/jvmfwk/source/fwkbase.cxx @@ -4,9 +4,9 @@ * * $RCSfile: fwkbase.cxx,v $ * - * $Revision: 1.10 $ + * $Revision: 1.11 $ * - * last change: $Author: obo $ $Date: 2007-06-13 07:57:54 $ + * last change: $Author: vg $ $Date: 2008-03-18 12:22:17 $ * * The Contents of this file are made available subject to * the terms of GNU Lesser General Public License Version 2.1. @@ -104,6 +104,15 @@ rtl::OUString getParam(const char * name) return retVal; } +rtl::OUString getParamFirstUrl(const char * name) +{ + // Some parameters can consist of multiple URLs (separated by space + // characters, although trim() harmlessly also removes other white-space), + // of which only the first is used: + sal_Int32 i = 0; + return getParam(name).trim().getToken(0, ' ', i); +} + }//blind namespace @@ -362,12 +371,12 @@ OUString VendorSettings::getPluginLibrary(const OUString& sVendor) rtl::OUString BootParams::getUserData() { - return getParam(UNO_JAVA_JFW_USER_DATA); + return getParamFirstUrl(UNO_JAVA_JFW_USER_DATA); } rtl::OUString BootParams::getSharedData() { - return getParam(UNO_JAVA_JFW_SHARED_DATA); + return getParamFirstUrl(UNO_JAVA_JFW_SHARED_DATA); } rtl::OUString BootParams::getInstallData() |