diff options
author | Bjoern Michaelsen <bjoern.michaelsen@canonical.com> | 2015-03-18 15:50:28 +0100 |
---|---|---|
committer | Bjoern Michaelsen <bjoern.michaelsen@canonical.com> | 2015-03-19 23:41:09 +0100 |
commit | 6c58493295547a83aecfc5d69b17316e980f8548 (patch) | |
tree | 5d4a32457a1292fb486f5e48c26bafd4efa69cfe /sw | |
parent | a7a0d8f7dd05d3b3e7d989573048495f3e6d5f36 (diff) |
simplify specialized SwIterator::First()
Change-Id: I6aac0645939cea0ef8fbfc2796f94cffc56d224e
Diffstat (limited to 'sw')
-rw-r--r-- | sw/inc/calbck.hxx | 8 |
1 files changed, 1 insertions, 7 deletions
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<SwClient, TSource> 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) |