diff options
Diffstat (limited to 'dtrans')
-rw-r--r-- | dtrans/source/os2/clipb/Os2Clipboard.cxx | 4 | ||||
-rw-r--r-- | dtrans/source/win32/clipb/WinClipboard.cxx | 4 | ||||
-rw-r--r-- | dtrans/source/win32/dnd/source.cxx | 4 | ||||
-rwxr-xr-x | dtrans/source/win32/dtobj/FmtFilter.cxx | 2 |
4 files changed, 6 insertions, 8 deletions
diff --git a/dtrans/source/os2/clipb/Os2Clipboard.cxx b/dtrans/source/os2/clipb/Os2Clipboard.cxx index 260c58f0d46f..76df3e4945c4 100644 --- a/dtrans/source/os2/clipb/Os2Clipboard.cxx +++ b/dtrans/source/os2/clipb/Os2Clipboard.cxx @@ -390,14 +390,14 @@ void SAL_CALL Os2Clipboard::notifyAllClipboardListener( ) } catch(RuntimeException&) { - OSL_ENSURE( false, "RuntimeException caught" ); + OSL_FAIL( "RuntimeException caught" ); debug_printf( "RuntimeException caught" ); } } } catch(const ::com::sun::star::lang::DisposedException&) { - OSL_ENSURE(false, "Service Manager disposed"); + OSL_FAIL("Service Manager disposed"); debug_printf( "Service Manager disposed"); // no further clipboard changed notifications diff --git a/dtrans/source/win32/clipb/WinClipboard.cxx b/dtrans/source/win32/clipb/WinClipboard.cxx index 76cf9bc2711b..5afd70cd44a9 100644 --- a/dtrans/source/win32/clipb/WinClipboard.cxx +++ b/dtrans/source/win32/clipb/WinClipboard.cxx @@ -256,13 +256,13 @@ void SAL_CALL CWinClipboard::notifyAllClipboardListener( ) } catch(RuntimeException&) { - OSL_ENSURE( false, "RuntimeException caught" ); + OSL_FAIL( "RuntimeException caught" ); } } } catch(const ::com::sun::star::lang::DisposedException&) { - OSL_ENSURE(false, "Service Manager disposed"); + OSL_FAIL("Service Manager disposed"); // no further clipboard changed notifications m_pImpl->unregisterClipboardViewer(); diff --git a/dtrans/source/win32/dnd/source.cxx b/dtrans/source/win32/dnd/source.cxx index 6e1f9f5b1bb5..f81b37601635 100644 --- a/dtrans/source/win32/dnd/source.cxx +++ b/dtrans/source/win32/dnd/source.cxx @@ -214,8 +214,6 @@ void SAL_CALL DragSource::startDrag( } else { - //OSL_ENSURE(false, "Overlapping Drag&Drop operation rejected!"); - cnt = InterlockedDecrement(&m_RunningDndOperationCount); DragSourceDropEvent dsde; @@ -229,7 +227,7 @@ void SAL_CALL DragSource::startDrag( } catch(RuntimeException&) { - OSL_ENSURE(false, "Runtime exception during event dispatching"); + OSL_FAIL("Runtime exception during event dispatching"); } } } diff --git a/dtrans/source/win32/dtobj/FmtFilter.cxx b/dtrans/source/win32/dtobj/FmtFilter.cxx index 5c7cc51485cb..677d382df729 100755 --- a/dtrans/source/win32/dtobj/FmtFilter.cxx +++ b/dtrans/source/win32/dtobj/FmtFilter.cxx @@ -470,7 +470,7 @@ std::wstring getShellLinkTarget(const std::wstring& aLnkFile) } catch(sal::systools::ComError& ex) { - OSL_ENSURE(false, ex.what()); + OSL_FAIL(ex.what()); ex = ex; } return target; |