summaryrefslogtreecommitdiff
path: root/sw/inc/calbck.hxx
diff options
context:
space:
mode:
authorBjoern Michaelsen <bjoern.michaelsen@canonical.com>2015-03-18 15:49:18 +0100
committerBjoern Michaelsen <bjoern.michaelsen@canonical.com>2015-03-19 23:41:08 +0100
commita7a0d8f7dd05d3b3e7d989573048495f3e6d5f36 (patch)
tree9e074a092b106338581c78b52996e466cb3ab7fc /sw/inc/calbck.hxx
parent59665096831ef0e88a3cfbfa4377d09246896f68 (diff)
make SwClientIter construcatable only from SwIter
Change-Id: I6e203792187311f3d00fd074fd67cbae7680723e
Diffstat (limited to 'sw/inc/calbck.hxx')
-rw-r--r--sw/inc/calbck.hxx17
1 files changed, 9 insertions, 8 deletions
diff --git a/sw/inc/calbck.hxx b/sw/inc/calbck.hxx
index 0ee4cf90e67c..4bffc7c7af8e 100644
--- a/sw/inc/calbck.hxx
+++ b/sw/inc/calbck.hxx
@@ -245,7 +245,8 @@ protected:
class SwClientIter SAL_FINAL : public sw::Ring<SwClientIter>
{
- friend SwClient* SwModify::Remove(SwClient*);
+ friend SwModify;
+ //friend SwClient* SwModify::Remove(SwClient*);
template<typename E, typename S> friend class SwIterator; ///< for typed interation
const SwModify& m_rRoot;
@@ -253,6 +254,13 @@ class SwClientIter SAL_FINAL : public sw::Ring<SwClientIter>
// the current object in an iteration
SwClient* m_pCurrent;
+ SwClientIter( const SwModify& rModify )
+ : m_rRoot(rModify)
+ {
+ MoveTo(our_pClientIters);
+ our_pClientIters = this;
+ m_pCurrent = m_pPosition = const_cast<SwClient*>(m_rRoot.GetDepends());
+ }
// in case the current object is already removed, the next object in the list
// is marked down to become the current object in the next step
// this is necessary because iteration requires access to members of the current object
@@ -271,13 +279,6 @@ class SwClientIter SAL_FINAL : public sw::Ring<SwClientIter>
static SW_DLLPUBLIC SwClientIter* our_pClientIters;
public:
- SwClientIter( const SwModify& rModify )
- : m_rRoot(rModify)
- {
- MoveTo(our_pClientIters);
- our_pClientIters = this;
- m_pCurrent = m_pPosition = const_cast<SwClient*>(m_rRoot.GetDepends());
- }
~SwClientIter() SAL_OVERRIDE
{
assert(our_pClientIters);