summaryrefslogtreecommitdiff
path: root/dtrans
diff options
context:
space:
mode:
authorThomas Arnhold <thomas@arnhold.org>2011-03-12 11:47:36 +0100
committerThomas Arnhold <thomas@arnhold.org>2011-03-12 14:19:17 +0100
commitd86e9a3906b5c2c51a7a04dac0a63c9f74196991 (patch)
tree6edeb296b93516795e8159f8c2ee04c544cc1874 /dtrans
parente6216e1ce6b399a10019b5d11b6fef6961fc0f74 (diff)
Move OSL_ENSURE(false,...) to OSL_FAIL(...)
Diffstat (limited to 'dtrans')
-rw-r--r--dtrans/source/os2/clipb/Os2Clipboard.cxx4
-rw-r--r--dtrans/source/win32/clipb/WinClipboard.cxx4
-rw-r--r--dtrans/source/win32/dnd/source.cxx2
-rw-r--r--dtrans/source/win32/dtobj/FmtFilter.cxx2
4 files changed, 6 insertions, 6 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..a8f04a868e93 100644
--- a/dtrans/source/win32/dnd/source.cxx
+++ b/dtrans/source/win32/dnd/source.cxx
@@ -229,7 +229,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 235c63e298f9..7fd23567d16b 100644
--- 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;