summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorBjoern Michaelsen <bjoern.michaelsen@canonical.com>2015-03-18 15:50:28 +0100
committerBjoern Michaelsen <bjoern.michaelsen@canonical.com>2015-03-19 23:41:09 +0100
commit6c58493295547a83aecfc5d69b17316e980f8548 (patch)
tree5d4a32457a1292fb486f5e48c26bafd4efa69cfe /sw
parenta7a0d8f7dd05d3b3e7d989573048495f3e6d5f36 (diff)
simplify specialized SwIterator::First()
Change-Id: I6aac0645939cea0ef8fbfc2796f94cffc56d224e
Diffstat (limited to 'sw')
-rw-r--r--sw/inc/calbck.hxx8
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)