summaryrefslogtreecommitdiff
path: root/svl
diff options
context:
space:
mode:
authorsb <sb@openoffice.org>2010-03-15 16:30:16 +0100
committersb <sb@openoffice.org>2010-03-15 16:30:16 +0100
commitb02197c94c5ea37f388d359583b04a2595626d57 (patch)
tree2ba9e91d629d249e6ae800b5ecef8c9ef063409a /svl
parent437778a56ba3cdb9b06f96099d0c037637d31a8a (diff)
sb121: #i109146# further fix in assertion logic (see <http://www.openoffice.org/servlets/ReadMsg?list=dev&msgNo=26776>)
Diffstat (limited to 'svl')
-rw-r--r--svl/source/misc/inettype.cxx15
1 files changed, 5 insertions, 10 deletions
diff --git a/svl/source/misc/inettype.cxx b/svl/source/misc/inettype.cxx
index 74c900a2bcfc..ee9aa5932525 100644
--- a/svl/source/misc/inettype.cxx
+++ b/svl/source/misc/inettype.cxx
@@ -807,16 +807,11 @@ MediaTypeEntry const * seekEntry(UniString const & rTypeName,
MediaTypeEntry const * pMap, sal_Size nSize)
{
#if defined DBG_UTIL
- static bool bChecked = false;
- if (!bChecked)
- {
- for (sal_Size i = 0; i < nSize - 1; ++i)
- DBG_ASSERT(
- rtl_str_compare(
- pMap[i].m_pTypeName, pMap[i + 1].m_pTypeName) < 0,
- "seekEntry(): Bad map");
- bChecked = true;
- }
+ for (sal_Size i = 0; i < nSize - 1; ++i)
+ DBG_ASSERT(
+ rtl_str_compare(
+ pMap[i].m_pTypeName, pMap[i + 1].m_pTypeName) < 0,
+ "seekEntry(): Bad map");
#endif
sal_Size nLow = 0;