summaryrefslogtreecommitdiff
path: root/desktop/source/pkgchk/unopkg/unopkg_misc.cxx
diff options
context:
space:
mode:
authorIvo Hinkelmann <ihi@openoffice.org>2007-08-20 12:50:55 +0000
committerIvo Hinkelmann <ihi@openoffice.org>2007-08-20 12:50:55 +0000
commit5d5099f6f213a07dfd562f61100d8bb5c4721854 (patch)
treee9bedcf34ea107383af279034dd3562f2fea296b /desktop/source/pkgchk/unopkg/unopkg_misc.cxx
parentc4877c30c16b069db61f2a0496e7a56d5d7d4e40 (diff)
INTEGRATION: CWS jl71 (1.7.6); FILE MERGED
2007/08/03 12:00:04 jl 1.7.6.1: #i80018# use default bootstrap mechanism
Diffstat (limited to 'desktop/source/pkgchk/unopkg/unopkg_misc.cxx')
-rw-r--r--desktop/source/pkgchk/unopkg/unopkg_misc.cxx18
1 files changed, 5 insertions, 13 deletions
diff --git a/desktop/source/pkgchk/unopkg/unopkg_misc.cxx b/desktop/source/pkgchk/unopkg/unopkg_misc.cxx
index 99373195b9d0..733a3cf53295 100644
--- a/desktop/source/pkgchk/unopkg/unopkg_misc.cxx
+++ b/desktop/source/pkgchk/unopkg/unopkg_misc.cxx
@@ -4,9 +4,9 @@
*
* $RCSfile: unopkg_misc.cxx,v $
*
- * $Revision: 1.8 $
+ * $Revision: 1.9 $
*
- * last change: $Author: ihi $ $Date: 2007-08-17 11:52:33 $
+ * last change: $Author: ihi $ $Date: 2007-08-20 13:50:55 $
*
* The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1.
@@ -54,6 +54,7 @@
#include "unotools/processfactory.hxx"
#include "unotools/configmgr.hxx"
#include "com/sun/star/beans/XPropertySet.hpp"
+#include "cppuhelper/bootstrap.hxx"
#include <stdio.h>
using ::rtl::OUString;
@@ -364,17 +365,8 @@ namespace {
Reference<XComponentContext> bootstrapStandAlone(
DisposeGuard & disposeGuard, bool /*verbose */)
{
- // bootstrap standalone UNO using types.rdb and services.rdb
- // directly avoiding any rc entries
- Reference<beans::XPropertySet> xProps(
- ::cppu::createRegistryServiceFactory(
- getExecutableDir() + OUSTR("/types.rdb"),
- getExecutableDir() + OUSTR("/services.rdb"),
- true /* read-only */ ),
- UNO_QUERY_THROW );
- Reference<XComponentContext> xContext(
- xProps->getPropertyValue( OUSTR("DefaultContext") ),
- UNO_QUERY_THROW );
+ Reference<XComponentContext> xContext =
+ ::cppu::defaultBootstrap_InitialComponentContext();
// assure disposing of local component context:
disposeGuard.reset(