summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBjoern Michaelsen <bjoern.michaelsen@canonical.com>2015-03-15 02:45:08 +0100
committerBjoern Michaelsen <bjoern.michaelsen@canonical.com>2015-03-16 23:34:52 +0100
commit3b4e5fd012be12478fed5c55f53cfd9cc4747a0e (patch)
tree4f58c78cc5533d97c1047765ecfcbda20293def0
parent29492f2901ba80aba5da35a4b1780b14ff090878 (diff)
get rid of SearchType
- lets hope nobody counts on ModifyBroadcast having persistent sideeffects Change-Id: Ie85feb71732c4a81fba22db8cf62ec7fe30d0cfa
-rw-r--r--sw/inc/calbck.hxx4
-rw-r--r--sw/inc/switerator.hxx2
2 files changed, 0 insertions, 6 deletions
diff --git a/sw/inc/calbck.hxx b/sw/inc/calbck.hxx
index 4c76fe9fd992..7fc2e6d574be 100644
--- a/sw/inc/calbck.hxx
+++ b/sw/inc/calbck.hxx
@@ -260,15 +260,11 @@ class SwClientIter SAL_FINAL : public sw::Ring<SwClientIter>
SwClient* GetLeftOfPos() { return static_cast<SwClient*>(m_pPosition->m_pLeft); }
SwClient* GetRighOfPos() { return static_cast<SwClient*>(m_pPosition->m_pRight); }
- // iterator can be limited to return only SwClient objects of a certain type
- TypeId m_aSearchType;
-
static SW_DLLPUBLIC SwClientIter* our_pClientIters;
public:
SwClientIter( const SwModify& rModify )
: m_rRoot(rModify)
- , m_aSearchType(nullptr)
{
MoveTo(our_pClientIters);
our_pClientIters = this;
diff --git a/sw/inc/switerator.hxx b/sw/inc/switerator.hxx
index 499c6e18e3bf..693393efaa9d 100644
--- a/sw/inc/switerator.hxx
+++ b/sw/inc/switerator.hxx
@@ -30,7 +30,6 @@ public:
SwIterator( const TSource& rSrc ) : aClientIter(rSrc) { assert(TElementType::IsOf( TYPE(SwClient) )); }
TElementType* First()
{
- aClientIter.m_aSearchType = TYPE(TElementType);
aClientIter.GoStart();
if(!aClientIter.m_pPosition)
return nullptr;
@@ -39,7 +38,6 @@ public:
}
TElementType* Last()
{
- aClientIter.m_aSearchType = TYPE(TElementType);
aClientIter.GoEnd();
if(!aClientIter.m_pPosition)
return nullptr;