diff options
author | Thomas Arnhold <thomas@arnhold.org> | 2011-03-19 14:11:09 +0100 |
---|---|---|
committer | Thomas Arnhold <thomas@arnhold.org> | 2011-03-19 14:11:09 +0100 |
commit | 3d874bdf409ca4a099853b30aeb9932e45c56f60 (patch) | |
tree | 3b88c39fa7cf3aa598a286534afc7de6f4ec98ab /dtrans/source/win32/mtaole | |
parent | 4edacef4f14f1992f8e0cbded5a86730c8353b4d (diff) |
Move OSL_ENSURE(sal_False,...) to OSL_FAIL(...)
Diffstat (limited to 'dtrans/source/win32/mtaole')
-rw-r--r-- | dtrans/source/win32/mtaole/MtaOleClipb.cxx | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/dtrans/source/win32/mtaole/MtaOleClipb.cxx b/dtrans/source/win32/mtaole/MtaOleClipb.cxx index 9faa9a0435fb..ee6da2ee5628 100644 --- a/dtrans/source/win32/mtaole/MtaOleClipb.cxx +++ b/dtrans/source/win32/mtaole/MtaOleClipb.cxx @@ -241,10 +241,10 @@ public: m_hResult = CoInitialize( NULL ); if ( S_OK == m_hResult ) - OSL_ENSURE( sal_False, \ + OSL_FAIL( \ "com was not yet initialzed, the thread was not created using osl_createThread" ); else if ( FAILED( m_hResult ) && !( RPC_E_CHANGED_MODE == m_hResult ) ) - OSL_ENSURE( sal_False, \ + OSL_FAIL( \ "com could not be initialized, maybe the thread was not created using osl_createThread" ); } @@ -375,7 +375,7 @@ HRESULT CMtaOleClipboard::flushClipboard( ) { if ( !WaitForThreadReady( ) ) { - OSL_ENSURE( sal_False, "clipboard sta thread not ready" ); + OSL_FAIL( "clipboard sta thread not ready" ); return E_FAIL; } @@ -404,7 +404,7 @@ HRESULT CMtaOleClipboard::getClipboard( IDataObject** ppIDataObject ) if ( !WaitForThreadReady( ) ) { - OSL_ENSURE( sal_False, "clipboard sta thread not ready" ); + OSL_FAIL( "clipboard sta thread not ready" ); return E_FAIL; } @@ -443,7 +443,7 @@ HRESULT CMtaOleClipboard::setClipboard( IDataObject* pIDataObject ) { if ( !WaitForThreadReady( ) ) { - OSL_ENSURE( sal_False, "clipboard sta thread not ready" ); + OSL_FAIL( "clipboard sta thread not ready" ); return E_FAIL; } @@ -481,7 +481,7 @@ sal_Bool CMtaOleClipboard::registerClipViewer( LPFNC_CLIPVIEWER_CALLBACK_t pfncC { if ( !WaitForThreadReady( ) ) { - OSL_ENSURE( sal_False, "clipboard sta thread not ready" ); + OSL_FAIL( "clipboard sta thread not ready" ); return sal_False; } |