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 | dc9fcdb963d27bbbb599366c6f09b6354bd219d9 (patch) | |
tree | e627d564ad3cbcd8d33a4a0c58fbbb62aa568ea7 /ucb/workben | |
parent | a382e2ec2b70dd3667675ff66bc6710f8802fec7 (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 bb920866c3..70240af771 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 ) { |