From b777130dbaa617f40ca46b45722fd728e8ef248b Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Mon, 27 Jan 2014 08:42:50 +0100 Subject: Fix apparently broken OSL_ASSERTs (that would have never fired) Change-Id: I10c5152ca09be49625f960e6dc3228ec2284ce58 --- sfx2/source/sidebar/ResourceManager.cxx | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'sfx2') diff --git a/sfx2/source/sidebar/ResourceManager.cxx b/sfx2/source/sidebar/ResourceManager.cxx index d3088907f847..da02db2a9356 100644 --- a/sfx2/source/sidebar/ResourceManager.cxx +++ b/sfx2/source/sidebar/ResourceManager.cxx @@ -370,7 +370,7 @@ void ResourceManager::ReadContextList ( } else { - OSL_ASSERT("expecting three or four values per ContextList entry, separated by comma"); + OSL_FAIL("expecting three or four values per ContextList entry, separated by comma"); continue; } } @@ -378,7 +378,7 @@ void ResourceManager::ReadContextList ( const OUString sContextName (sValue.getToken(0, ',', nCharacterIndex).trim()); if (nCharacterIndex < 0) { - OSL_ASSERT("expecting three or four values per ContextList entry, separated by comma"); + OSL_FAIL("expecting three or four values per ContextList entry, separated by comma"); continue; } @@ -436,7 +436,7 @@ void ResourceManager::ReadContextList ( } else { - OSL_ASSERT("application name not recognized"); + OSL_FAIL("application name not recognized"); continue; } } @@ -450,7 +450,7 @@ void ResourceManager::ReadContextList ( const EnumContext::Context eContext (EnumContext::GetContextEnum(sContextName)); if (eContext == EnumContext::Context_Unknown) { - OSL_ASSERT("context name not recognized"); + OSL_FAIL("context name not recognized"); continue; } @@ -463,7 +463,7 @@ void ResourceManager::ReadContextList ( bIsInitiallyVisible = false; else { - OSL_ASSERT("unrecognized state"); + OSL_FAIL("unrecognized state"); continue; } -- cgit v1.2.3