summaryrefslogtreecommitdiff
path: root/sw/source
diff options
context:
space:
mode:
authorBjoern Michaelsen <bjoern.michaelsen@canonical.com>2015-03-18 15:28:10 +0100
committerBjoern Michaelsen <bjoern.michaelsen@canonical.com>2015-03-19 23:41:07 +0100
commit37262d61b395afdd575ddc99c1eab83b414fd082 (patch)
tree0552c949a2d7147b6fdfd5e725dd52e8e90a0e64 /sw/source
parenta5fead9c44e2965587919e675ab5fa5e9c4a6b7f (diff)
remove superficial helpers
Change-Id: Icd690bf20c47152b00e1f51586471f9fe029c4cf
Diffstat (limited to 'sw/source')
-rw-r--r--sw/source/core/attr/calbck.cxx12
1 files changed, 6 insertions, 6 deletions
diff --git a/sw/source/core/attr/calbck.cxx b/sw/source/core/attr/calbck.cxx
index a19229d1059a..e4eb51372739 100644
--- a/sw/source/core/attr/calbck.cxx
+++ b/sw/source/core/attr/calbck.cxx
@@ -74,9 +74,9 @@ SwModify::~SwModify()
// If the document gets destroyed anyway, just tell clients to
// forget me so that they don't try to get removed from my list
// later when they also get destroyed
- SwClientIter aIter( *this );
- for(aIter.GoStart(); aIter; ++aIter)
- aIter->pRegisteredIn = nullptr;
+ SwIterator<SwClient,SwModify> aIter(*this);
+ for(SwClient* pClient = aIter.First(); pClient; pClient = aIter.Next())
+ pClient->pRegisteredIn = nullptr;
}
else
{
@@ -134,9 +134,9 @@ bool SwModify::GetInfo( SfxPoolItem& rInfo ) const
{
if(!pRoot)
return true;
- SwClientIter aIter( *const_cast<SwModify*>(this) );
- for(aIter.GoStart(); aIter; ++aIter)
- if(!aIter->GetInfo( rInfo ))
+ SwIterator<SwClient,SwModify> aIter(*this);
+ for(SwClient* pClient = aIter.First(); pClient; pClient = aIter.Next())
+ if(!pClient->GetInfo( rInfo ))
return false;
return true;
}