diff options
author | Jacek Wolszczak <shutdownrunner@gmail.com> | 2011-05-08 22:14:45 +0200 |
---|---|---|
committer | Fridrich Štrba <fridrich.strba@bluewin.ch> | 2011-05-09 15:06:56 +0200 |
commit | 4cf350c27fbe9c84ec38daeffe2b57ebc515f8c2 (patch) | |
tree | de43a2b56eeb5717374c41844f90320502aaa76d /sw/inc/switerator.hxx | |
parent | ce0a87b004a37e9a2f2da41d6e811e9bdba82eda (diff) |
REPLACE DBG_stuff with OSL_ASSERT and OSL_FAIL
Diffstat (limited to 'sw/inc/switerator.hxx')
-rw-r--r-- | sw/inc/switerator.hxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sw/inc/switerator.hxx b/sw/inc/switerator.hxx index be729771b54b..fb0523c22fef 100644 --- a/sw/inc/switerator.hxx +++ b/sw/inc/switerator.hxx @@ -28,14 +28,14 @@ #define _SWITERATOR_HXX #include <calbck.hxx> -#include <tools/debug.hxx> +#include <osl/diagnose.h> template< class TElementType, class TSource > class SwIterator { SwClientIter aClientIter; public: - SwIterator( const TSource& rSrc ) : aClientIter(rSrc) { DBG_ASSERT( TElementType::IsOf( TYPE(SwClient) ), "Incompatible types!" ); } + SwIterator( const TSource& rSrc ) : aClientIter(rSrc) { OSL_ENSURE( TElementType::IsOf( TYPE(SwClient) ), "Incompatible types!" ); } 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); } |