summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBjoern Michaelsen <bjoern.michaelsen@canonical.com>2015-03-14 18:40:57 +0100
committerBjoern Michaelsen <bjoern.michaelsen@canonical.com>2015-03-16 20:37:24 +0100
commit0c2731410ebd8b4414d07b9daf11b3e70f48e1fb (patch)
treea470459e7d9f3792367bdf62c7801c4856b2019f
parentd7ab0bc37ee62d6006abe8c2a281ba9975c08770 (diff)
assert hard here
Change-Id: Ie8eba16f0696f80748ed6ea64bef02d6f015a5ff
-rw-r--r--sw/inc/switerator.hxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/inc/switerator.hxx b/sw/inc/switerator.hxx
index 9df59065e76c..9cefc921f3b6 100644
--- a/sw/inc/switerator.hxx
+++ b/sw/inc/switerator.hxx
@@ -27,7 +27,7 @@ template< class TElementType, class TSource > class SwIterator SAL_FINAL
SwClientIter aClientIter;
public:
- SwIterator( const TSource& rSrc ) : aClientIter(rSrc) { SAL_WARN_IF( !TElementType::IsOf( TYPE(SwClient) ), "sw", "Incompatible types!" ); }
+ SwIterator( const TSource& rSrc ) : aClientIter(rSrc) { assert(TElementType::IsOf( TYPE(SwClient) )); }
TElementType* First() { SwClient* p = aClientIter.First(TYPE(TElementType)); return PTR_CAST(TElementType,p); }
TElementType* Last() { SwClient* p = aClientIter.Last( TYPE(TElementType)); return PTR_CAST(TElementType,p); }
TElementType* Next() { SwClient* p = aClientIter.Next(); return PTR_CAST(TElementType,p); }