diff options
author | Thomas Arnhold <thomas@arnhold.org> | 2011-03-19 14:09:49 +0100 |
---|---|---|
committer | Thomas Arnhold <thomas@arnhold.org> | 2011-03-19 14:09:49 +0100 |
commit | 970be45287de1a046df1c546abb06ad5f6b9c084 (patch) | |
tree | 0a88a771e96b5e9d884e5b087adad9d320bdbe7b /shell | |
parent | e35cffb37a792b78f8dbcd85b329fa88097b1ea5 (diff) |
Move OSL_ENSURE(sal_False,...) to OSL_FAIL(...)
Diffstat (limited to 'shell')
-rwxr-xr-x | shell/source/win32/workbench/TestProxySet.cxx | 8 | ||||
-rwxr-xr-x | shell/source/win32/workbench/TestSmplMail.cxx | 6 | ||||
-rwxr-xr-x | shell/source/win32/workbench/TestSysShExec.cxx | 10 |
3 files changed, 12 insertions, 12 deletions
diff --git a/shell/source/win32/workbench/TestProxySet.cxx b/shell/source/win32/workbench/TestProxySet.cxx index 5cad1a2bd28d..6046d57e942c 100755 --- a/shell/source/win32/workbench/TestProxySet.cxx +++ b/shell/source/win32/workbench/TestProxySet.cxx @@ -101,7 +101,7 @@ int SAL_CALL main(int, char*, char* ) // Print a message if an error occurred. if ( g_xFactory.is() == sal_False ) { - OSL_ENSURE(sal_False, "Can't create RegistryServiceFactory"); + OSL_FAIL("Can't create RegistryServiceFactory"); return(-1); } @@ -118,7 +118,7 @@ int SAL_CALL main(int, char*, char* ) if ( !xProxySettings.is() ) { - OSL_ENSURE( sal_False, "Error creating SystemProxySettings Service" ); + OSL_FAIL( "Error creating SystemProxySettings Service" ); return(-1); } @@ -145,7 +145,7 @@ int SAL_CALL main(int, char*, char* ) if ( !xProxySettings.is() ) { - OSL_ENSURE( sal_False, "Error creating SystemProxySettings Service" ); + OSL_FAIL( "Error creating SystemProxySettings Service" ); return(-1); } @@ -187,7 +187,7 @@ int SAL_CALL main(int, char*, char* ) // Print a message if an error occurred. if ( xComponent.is() == sal_False ) { - OSL_ENSURE(sal_False, "Error shuting down"); + OSL_FAIL("Error shuting down"); } // Dispose and clear factory diff --git a/shell/source/win32/workbench/TestSmplMail.cxx b/shell/source/win32/workbench/TestSmplMail.cxx index d12a9708abca..9e00ef389ebf 100755 --- a/shell/source/win32/workbench/TestSmplMail.cxx +++ b/shell/source/win32/workbench/TestSmplMail.cxx @@ -96,7 +96,7 @@ int SAL_CALL main(int , char*, char* ) // Print a message if an error occurred. if ( g_xFactory.is() == sal_False ) { - OSL_ENSURE(sal_False, "Can't create RegistryServiceFactory"); + OSL_FAIL("Can't create RegistryServiceFactory"); return(-1); } @@ -113,7 +113,7 @@ int SAL_CALL main(int , char*, char* ) if ( !xSmplMailClientSuppl.is() ) { - OSL_ENSURE( sal_False, "Error creating SimpleSystemMail Service" ); + OSL_FAIL( "Error creating SimpleSystemMail Service" ); return(-1); } @@ -175,7 +175,7 @@ int SAL_CALL main(int , char*, char* ) // Print a message if an error occurred. if ( xComponent.is() == sal_False ) { - OSL_ENSURE(sal_False, "Error shuting down"); + OSL_FAIL("Error shuting down"); } // Dispose and clear factory diff --git a/shell/source/win32/workbench/TestSysShExec.cxx b/shell/source/win32/workbench/TestSysShExec.cxx index b37059f5fdf5..d6b934f89708 100755 --- a/shell/source/win32/workbench/TestSysShExec.cxx +++ b/shell/source/win32/workbench/TestSysShExec.cxx @@ -106,7 +106,7 @@ int SAL_CALL main(int nArgc, char* Argv[], char* ) // Print a message if an error occurred. if ( g_xFactory.is() == sal_False ) { - OSL_ENSURE(sal_False, "Can't create RegistryServiceFactory"); + OSL_FAIL("Can't create RegistryServiceFactory"); return(-1); } @@ -121,7 +121,7 @@ int SAL_CALL main(int nArgc, char* Argv[], char* ) if ( !xSysShExec.is() ) { - OSL_ENSURE( sal_False, "Error creating SystemShellExecute Service" ); + OSL_FAIL( "Error creating SystemShellExecute Service" ); return(-1); } @@ -135,11 +135,11 @@ int SAL_CALL main(int nArgc, char* Argv[], char* ) } catch( SystemShellExecuteException& ) { - OSL_ENSURE( sal_False, "Error executing system command" ); + OSL_FAIL( "Error executing system command" ); } catch( IllegalArgumentException& ) { - OSL_ENSURE( sal_False, "Invalid parameter" ); + OSL_FAIL( "Invalid parameter" ); } //-------------------------------------------------- @@ -152,7 +152,7 @@ int SAL_CALL main(int nArgc, char* Argv[], char* ) // Print a message if an error occurred. if ( xComponent.is() == sal_False ) { - OSL_ENSURE(sal_False, "Error shuting down"); + OSL_FAIL("Error shuting down"); } // Dispose and clear factory |