summaryrefslogtreecommitdiff
path: root/tools
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 /tools
parente6216e1ce6b399a10019b5d11b6fef6961fc0f74 (diff)
Move OSL_ENSURE(false,...) to OSL_FAIL(...)
Diffstat (limited to 'tools')
-rw-r--r--tools/source/fsys/urlobj.cxx4
-rw-r--r--tools/source/string/tstring.cxx4
2 files changed, 4 insertions, 4 deletions
diff --git a/tools/source/fsys/urlobj.cxx b/tools/source/fsys/urlobj.cxx
index 57eabeadbcb2..91e4e6936bf5 100644
--- a/tools/source/fsys/urlobj.cxx
+++ b/tools/source/fsys/urlobj.cxx
@@ -3475,8 +3475,8 @@ bool INetURLObject::setPath(rtl::OUString const & rThePath, bool bOctets,
//============================================================================
bool INetURLObject::checkHierarchical() const {
if (m_eScheme == INET_PROT_VND_SUN_STAR_EXPAND) {
- OSL_ENSURE(
- false, "INetURLObject::checkHierarchical vnd.sun.star.expand");
+ OSL_FAIL(
+ "INetURLObject::checkHierarchical vnd.sun.star.expand");
return true;
} else {
return getSchemeInfo().m_bHierarchical;
diff --git a/tools/source/string/tstring.cxx b/tools/source/string/tstring.cxx
index 8a0ecb8a8529..10b9cef09965 100644
--- a/tools/source/string/tstring.cxx
+++ b/tools/source/string/tstring.cxx
@@ -165,7 +165,7 @@ float ByteString::ToFloat() const
{
DBG_CHKTHIS( ByteString, DbgCheckByteString );
- OSL_ENSURE(false, "ByteString::ToFloat unusable");
+ OSL_FAIL("ByteString::ToFloat unusable");
return 0;
}
@@ -175,7 +175,7 @@ double ByteString::ToDouble() const
{
DBG_CHKTHIS( ByteString, DbgCheckByteString );
- OSL_ENSURE(false, "ByteString::ToDouble unusable");
+ OSL_FAIL("ByteString::ToDouble unusable");
return 0;
}