From 6c58493295547a83aecfc5d69b17316e980f8548 Mon Sep 17 00:00:00 2001 From: Bjoern Michaelsen Date: Wed, 18 Mar 2015 15:50:28 +0100 Subject: simplify specialized SwIterator::First() Change-Id: I6aac0645939cea0ef8fbfc2796f94cffc56d224e --- sw/inc/calbck.hxx | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'sw') diff --git a/sw/inc/calbck.hxx b/sw/inc/calbck.hxx index 4bffc7c7af8e..e4b93c8fa899 100644 --- a/sw/inc/calbck.hxx +++ b/sw/inc/calbck.hxx @@ -345,13 +345,7 @@ template< typename TSource > class SwIterator public: SwIterator( const TSource& rSrc ) : aClientIter(rSrc) {} SwClient* First() - { - aClientIter.GoStart(); - if(!aClientIter.m_pPosition) - return nullptr; - aClientIter.m_pCurrent = nullptr; - return Next(); - } + { return aClientIter.GoStart(); } SwClient* Last() { if(!aClientIter.m_pPosition) -- cgit