summaryrefslogtreecommitdiff
path: root/uui
diff options
context:
space:
mode:
authorThomas Arnhold <thomas@arnhold.org>2011-03-12 14:27:45 +0100
committerThomas Arnhold <thomas@arnhold.org>2011-03-13 16:50:43 +0100
commit1848de2f4cce84862cf0843e15f38ce5d1f26108 (patch)
tree38d3983e56f5d2c900c24750e0050556435cfd6b /uui
parente4d0bb122a93d243067814b9d43f9c9ab1e4df65 (diff)
Move OSL_ENSURE(false,...) to OSL_FAIL(...)
Diffstat (limited to 'uui')
-rw-r--r--uui/source/iahndl.cxx13
1 files changed, 5 insertions, 8 deletions
diff --git a/uui/source/iahndl.cxx b/uui/source/iahndl.cxx
index 5822704b4b0e..de5ac9102b20 100644
--- a/uui/source/iahndl.cxx
+++ b/uui/source/iahndl.cxx
@@ -352,7 +352,7 @@ namespace
aMessage.append( "no type found for '" );
aMessage.append( ::rtl::OUStringToOString( i_rTypeName, RTL_TEXTENCODING_UTF8 ) );
aMessage.append( "'" );
- OSL_ENSURE( false, aMessage.makeStringAndClear().getStr() );
+ OSL_FAIL( aMessage.makeStringAndClear().getStr() );
#endif
return false;
}
@@ -1038,8 +1038,7 @@ UUIInteractionHelper::getInteractionHandlerList(
if ( !( xHierNameAccess->getByHierarchicalName(
aKeyBuffer.makeStringAndClear() ) >>= aValue ) )
{
- OSL_ENSURE( false,
- "GetInteractionHandlerList - "
+ OSL_FAIL( "GetInteractionHandlerList - "
"Error getting item value!" );
continue;
}
@@ -1053,8 +1052,7 @@ UUIInteractionHelper::getInteractionHandlerList(
{
// getByHierarchicalName
- OSL_ENSURE( false,
- "GetInteractionHandlerList - "
+ OSL_FAIL( "GetInteractionHandlerList - "
"caught NoSuchElementException!" );
}
}
@@ -1066,7 +1064,7 @@ UUIInteractionHelper::getInteractionHandlerList(
}
catch ( uno::Exception const & )
{
- OSL_ENSURE( false, "GetInteractionHandlerList - Caught Exception!" );
+ OSL_FAIL( "GetInteractionHandlerList - Caught Exception!" );
}
}
@@ -1367,8 +1365,7 @@ UUIInteractionHelper::handleFutureDocumentVersionUpdateRequest(
s_bDeferredToNextSession = true;
break;
default:
- OSL_ENSURE( false,
- "UUIInteractionHelper::handleFutureDocumentVersionUpdateRequest: "
+ OSL_FAIL( "UUIInteractionHelper::handleFutureDocumentVersionUpdateRequest: "
"unexpected dialog return value!" );
break;
}