diff options
author | sb <sb@openoffice.org> | 2010-04-12 14:22:30 +0200 |
---|---|---|
committer | sb <sb@openoffice.org> | 2010-04-12 14:22:30 +0200 |
commit | afc4642685c41b3a9f2fda4f81d342667ed47d09 (patch) | |
tree | 0326ccb03cd1be48592e84e249713ddf75a690fc /svl/source | |
parent | 0768a7d2726ce4f0772b52d95eeb23143336655c (diff) | |
parent | b02197c94c5ea37f388d359583b04a2595626d57 (diff) |
sb121: merged in DEV300_m76
Diffstat (limited to 'svl/source')
-rw-r--r-- | svl/source/misc/inettype.cxx | 17 |
1 files changed, 7 insertions, 10 deletions
diff --git a/svl/source/misc/inettype.cxx b/svl/source/misc/inettype.cxx index bec8b91e7c22..ee9aa5932525 100644 --- a/svl/source/misc/inettype.cxx +++ b/svl/source/misc/inettype.cxx @@ -806,16 +806,13 @@ namespace unnamed_svl_inettype { MediaTypeEntry const * seekEntry(UniString const & rTypeName, MediaTypeEntry const * pMap, sal_Size nSize) { -#if defined DBG_UTIL || defined INETTYPE_DEBUG - static bool bChecked = false; - if (!bChecked) - { - for (sal_Size i = 0; i < nSize - 1; ++i) - DBG_ASSERT(pMap[i].m_pTypeName < pMap[i + 1].m_pTypeName, - "seekEntry(): Bad map"); - bChecked = true; - } -#endif // DBG_UTIL, INETTYPE_DEBUG +#if defined DBG_UTIL + 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; sal_Size nHigh = nSize; |