diff options
author | Stephan Bergmann <sb@openoffice.org> | 2000-12-04 16:39:20 +0000 |
---|---|---|
committer | Stephan Bergmann <sb@openoffice.org> | 2000-12-04 16:39:20 +0000 |
commit | 5cabaecfda85b07338d692f0cfc1814e5f84516d (patch) | |
tree | a7a2f63f9f58f9e0fbeb10fb2d496f4da5d9e0bf /ucb/workben | |
parent | f83e46cacda852f8ec13f0dec6c073e547e0c39c (diff) |
#80720# Fixed call to cppu::createRegistryServiceFactory().
Diffstat (limited to 'ucb/workben')
-rw-r--r-- | ucb/workben/ucb/ucbdemo.cxx | 24 |
1 files changed, 10 insertions, 14 deletions
diff --git a/ucb/workben/ucb/ucbdemo.cxx b/ucb/workben/ucb/ucbdemo.cxx index 0ccda1bf439c..6c87cbd28628 100644 --- a/ucb/workben/ucb/ucbdemo.cxx +++ b/ucb/workben/ucb/ucbdemo.cxx @@ -2,9 +2,9 @@ * * $RCSfile: ucbdemo.cxx,v $ * - * $Revision: 1.6 $ + * $Revision: 1.7 $ * - * last change: $Author: sb $ $Date: 2000-11-16 11:15:29 $ + * last change: $Author: sb $ $Date: 2000-12-04 17:39:20 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -167,6 +167,10 @@ #include <com/sun/star/bridge/XUnoUrlResolver.hpp> #endif +#ifndef _COMPHELPER_REGPATHHELPER_HXX_ +#include <comphelper/regpathhelper.hxx> +#endif + #ifndef _CPPUHELPER_WEAK_HXX_ #include <cppuhelper/weak.hxx> #endif @@ -2584,21 +2588,13 @@ void MyApp::Main() // Initialize local Service Manager and basic services. ////////////////////////////////////////////////////////////////////// - OStartupInfo aInfo; - OUString aExeName; - if ( aInfo.getExecutableFile( aExeName ) != OStartupInfo::E_None ) - { - DBG_ERROR( "Error getting Executable file name!" ); - return; - } - - OUString aRegFile( aExeName.copy( 0, aExeName.lastIndexOf( '/' ) + 1 ) ); - aRegFile += OUString::createFromAscii( "applicat.rdb" ); - Reference< XMultiServiceFactory > xFac; try { - xFac = cppu::createRegistryServiceFactory( aRegFile, aRegFile ); + xFac = cppu::createRegistryServiceFactory( + comphelper::getPathToSystemRegistry(), + rtl::OUString(), + true); } catch ( com::sun::star::uno::Exception ) { |