diff options
author | sb <sb@openoffice.org> | 2010-03-12 11:28:15 +0100 |
---|---|---|
committer | sb <sb@openoffice.org> | 2010-03-12 11:28:15 +0100 |
commit | d4ba2aa9c5f60d1eccb923daff4a6fcd0c063aba (patch) | |
tree | 7b36b44dd481bd3512ab41770f7f9d65a66df1f5 /svl/source/misc | |
parent | f696d8ce6bbcc8cded7b075049a8c163c20c3782 (diff) |
sb121: #i109146# fixed assertion logic
Diffstat (limited to 'svl/source/misc')
-rw-r--r-- | svl/source/misc/inettype.cxx | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/svl/source/misc/inettype.cxx b/svl/source/misc/inettype.cxx index bec8b91e7c22..74c900a2bcfc 100644 --- a/svl/source/misc/inettype.cxx +++ b/svl/source/misc/inettype.cxx @@ -806,16 +806,18 @@ namespace unnamed_svl_inettype { MediaTypeEntry const * seekEntry(UniString const & rTypeName, MediaTypeEntry const * pMap, sal_Size nSize) { -#if defined DBG_UTIL || defined INETTYPE_DEBUG +#if defined DBG_UTIL 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"); + DBG_ASSERT( + rtl_str_compare( + pMap[i].m_pTypeName, pMap[i + 1].m_pTypeName) < 0, + "seekEntry(): Bad map"); bChecked = true; } -#endif // DBG_UTIL, INETTYPE_DEBUG +#endif sal_Size nLow = 0; sal_Size nHigh = nSize; |