diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2012-05-02 16:41:06 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2012-05-02 16:55:29 +0200 |
commit | 5c22a03320f20ae9ac2c3c16025e7c5e3a7915d5 (patch) | |
tree | 9a163219cb9c32b8f945ce9ad71219b06f62aa90 /ucb | |
parent | 9911ee515dd3d1e077dbf9c1fb4fd5c42a3c49b6 (diff) |
Cleaned up CommandLineArgs
* Support for dead arguments has been removed.
** Especially, dead UCB_CONFIGURATION_KEY1/2_xxx values have also been removed,
and code initializing UCB has been simplified accordingly.
* For the sake of simplicity, behaviour has been changed slightly. For example,
passing both --calc --writer now always lets --writer win (whereas in the past
the one mentioned first, i.e., --calc in this example, would win).
Change-Id: Id40a19b9ef96db0d439cadd96ba491bf640d28fb
Diffstat (limited to 'ucb')
-rw-r--r-- | ucb/workben/ucb/ucbdemo.cxx | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/ucb/workben/ucb/ucbdemo.cxx b/ucb/workben/ucb/ucbdemo.cxx index 4e71592958a6..645dc438134d 100644 --- a/ucb/workben/ucb/ucbdemo.cxx +++ b/ucb/workben/ucb/ucbdemo.cxx @@ -77,7 +77,6 @@ #include <vcl/svapp.hxx> #include <vcl/help.hxx> #include <srcharg.hxx> -#include <osl/security.hxx> using ucbhelper::getLocalFileURL; using ucbhelper::getSystemPathFromFileURL; @@ -430,13 +429,9 @@ sal_Bool Ucb::init() if (m_xFac.is()) try { - rtl::OUString aPipe; - osl::Security().getUserIdent(aPipe); - uno::Sequence< uno::Any > aArgs(4); + uno::Sequence< uno::Any > aArgs(2); aArgs[0] <<= m_aConfigurationKey1; aArgs[1] <<= m_aConfigurationKey2; - aArgs[2] <<= rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("PIPE")); - aArgs[3] <<= aPipe; ::ucbhelper::ContentBroker::initialize( m_xFac, aArgs ); m_xProv |