diff options
Diffstat (limited to 'shell/source/win32/workbench/TestSysShExec.cxx')
-rw-r--r-- | shell/source/win32/workbench/TestSysShExec.cxx | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/shell/source/win32/workbench/TestSysShExec.cxx b/shell/source/win32/workbench/TestSysShExec.cxx index f8857dbd3b..797947e1cd 100644 --- a/shell/source/win32/workbench/TestSysShExec.cxx +++ b/shell/source/win32/workbench/TestSysShExec.cxx @@ -1,3 +1,4 @@ +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. @@ -35,9 +36,7 @@ #include <com/sun/star/lang/XComponent.hpp> #include <com/sun/star/registry/XSimpleRegistry.hpp> -#ifndef _COM_SUN_STAR_SYS_SHELL_XSYSTEMSHELLEXECUTE_HPP_ #include <com/sun/star/system/XSystemShellExecute.hpp> -#endif #include <cppuhelper/servicefactory.hxx> @@ -104,7 +103,7 @@ int SAL_CALL main(int nArgc, char* Argv[], char* ) OUString rdbName = OUString( RTL_CONSTASCII_USTRINGPARAM( RDB_SYSPATH ) ); Reference< XMultiServiceFactory > g_xFactory( createRegistryServiceFactory( rdbName ) ); - // Print a message if an error occured. + // Print a message if an error occurred. if ( g_xFactory.is() == sal_False ) { OSL_ENSURE(sal_False, "Can't create RegistryServiceFactory"); @@ -118,7 +117,7 @@ int SAL_CALL main(int nArgc, char* Argv[], char* ) //------------------------------------------------- Reference< XSystemShellExecute > xSysShExec( - g_xFactory->createInstance( OUString::createFromAscii( "com.sun.star.system.SystemShellExecute" ) ), UNO_QUERY ); + g_xFactory->createInstance( OUString(RTL_CONSTASCII_USTRINGPARAM("com.sun.star.system.SystemShellExecute")) ), UNO_QUERY ); if ( !xSysShExec.is() ) { @@ -150,7 +149,7 @@ int SAL_CALL main(int nArgc, char* Argv[], char* ) // Cast factory to XComponent Reference< XComponent > xComponent( g_xFactory, UNO_QUERY ); - // Print a message if an error occured. + // Print a message if an error occurred. if ( xComponent.is() == sal_False ) { OSL_ENSURE(sal_False, "Error shuting down"); @@ -165,3 +164,5 @@ int SAL_CALL main(int nArgc, char* Argv[], char* ) return 0; } + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |