Kaydet (Commit) 6c584932 authored tarafından Bjoern Michaelsen's avatar Bjoern Michaelsen

simplify specialized SwIterator::First()

Change-Id: I6aac0645939cea0ef8fbfc2796f94cffc56d224e
üst a7a0d8f7
...@@ -345,13 +345,7 @@ template< typename TSource > class SwIterator<SwClient, TSource> ...@@ -345,13 +345,7 @@ template< typename TSource > class SwIterator<SwClient, TSource>
public: public:
SwIterator( const TSource& rSrc ) : aClientIter(rSrc) {} SwIterator( const TSource& rSrc ) : aClientIter(rSrc) {}
SwClient* First() SwClient* First()
{ { return aClientIter.GoStart(); }
aClientIter.GoStart();
if(!aClientIter.m_pPosition)
return nullptr;
aClientIter.m_pCurrent = nullptr;
return Next();
}
SwClient* Last() SwClient* Last()
{ {
if(!aClientIter.m_pPosition) if(!aClientIter.m_pPosition)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment