diff options
author | Mathias Bauer <mba@openoffice.org> | 2009-10-31 00:36:06 +0100 |
---|---|---|
committer | Mathias Bauer <mba@openoffice.org> | 2009-10-31 00:36:06 +0100 |
commit | be3ac782e544a45fedcbd1c241656890b29a0dbd (patch) | |
tree | c040bef998793d5073962c7bf7eefb3040533f05 /svx/source/gengal | |
parent | 8744578b99ab60f90174ae3b00e3a3fd7bb05788 (diff) |
#i106421#: move svx/source/cui to cui
Diffstat (limited to 'svx/source/gengal')
-rw-r--r-- | svx/source/gengal/gengal.cxx | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/svx/source/gengal/gengal.cxx b/svx/source/gengal/gengal.cxx index 06089c97c166..f420e8f7680e 100644 --- a/svx/source/gengal/gengal.cxx +++ b/svx/source/gengal/gengal.cxx @@ -43,6 +43,7 @@ #include <comphelper/regpathhelper.hxx> #include <cppuhelper/servicefactory.hxx> #include <cppuhelper/bootstrap.hxx> +#include <com/sun/star/uno/Reference.h> #include <com/sun/star/lang/XMultiServiceFactory.hpp> #include <com/sun/star/lang/XInitialization.hpp> #include <com/sun/star/registry/XSimpleRegistry.hpp> @@ -73,7 +74,6 @@ #include <gallery1.hxx> using namespace ::vos; -using namespace ::rtl; using namespace ::com::sun::star::uno; using namespace ::com::sun::star::registry; using namespace ::com::sun::star::lang; @@ -221,7 +221,7 @@ static void PrintHelp() fprintf( stdout, "\t\t\tare required.\n"); } -static OUString Smartify( const OUString &rPath ) +static rtl::OUString Smartify( const rtl::OUString &rPath ) { INetURLObject aURL; aURL.SetSmartURL( rPath ); @@ -234,7 +234,7 @@ static OUString Smartify( const OUString &rPath ) void GalApp::Init() { if( getenv( "OOO_INSTALL_PREFIX" ) == NULL ) { - OUString fileName = GetAppFileName(); + rtl::OUString fileName = GetAppFileName(); int lastSlash = fileName.lastIndexOf( '/' ); #ifdef WNT // Don't know which directory separators GetAppFileName() returns on Windows. @@ -242,9 +242,9 @@ void GalApp::Init() if( fileName.lastIndexOf( '\\' ) > lastSlash ) lastSlash = fileName.lastIndexOf( '\\' ); #endif - OUString baseBinDir = fileName.copy( 0, lastSlash ); - OUString installPrefix = baseBinDir + OUString::createFromAscii( "/../.." ); - OUString assignment = OUString::createFromAscii( "OOO_INSTALL_PREFIX=" ) + installPrefix; + rtl::OUString baseBinDir = fileName.copy( 0, lastSlash ); + rtl::OUString installPrefix = baseBinDir + rtl::OUString::createFromAscii( "/../.." ); + rtl::OUString assignment = rtl::OUString::createFromAscii( "OOO_INSTALL_PREFIX=" ) + installPrefix; putenv( strdup( OUSTRING_CSTR( assignment ))); } OSL_TRACE( "OOO_INSTALL_PREFIX=%s", getenv( "OOO_INSTALL_PREFIX" ) ); @@ -262,7 +262,7 @@ void GalApp::Init() void GalApp::InitUCB() { - OUString aEmpty; + rtl::OUString aEmpty; Sequence< Any > aArgs(6); aArgs[0] <<= rtl::OUString::createFromAscii(UCB_CONFIGURATION_KEY1_LOCAL); @@ -287,7 +287,7 @@ void GalApp::Main() for( USHORT i = 0; i < GetCommandLineParamCount(); i++ ) { - OUString aParam = GetCommandLineParam( i ); + rtl::OUString aParam = GetCommandLineParam( i ); if( aParam.equalsAscii( "--help" ) || aParam.equalsAscii( "-h" ) ) |