summaryrefslogtreecommitdiff
path: root/sw/inc/bparr.hxx
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2014-08-07 10:09:07 +0200
committerStephan Bergmann <sbergman@redhat.com>2014-08-07 10:09:07 +0200
commitca16ec4346cec871163c0b9ff361c7ad8bc74c16 (patch)
treebf562e32414ef25907e4f8f377f2b0d7385eb484 /sw/inc/bparr.hxx
parent47585cea02f00ac15b05c092e5392bd76e78daf9 (diff)
Avoid illegal downcasts from BigPtrEntry to SwNode
...and while at it, remove the need for the TempBigPtrEntry derivation. Change-Id: Ic758f646578a90a28632b1368fed209eb84f9c1c
Diffstat (limited to 'sw/inc/bparr.hxx')
-rw-r--r--sw/inc/bparr.hxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/sw/inc/bparr.hxx b/sw/inc/bparr.hxx
index 3c5ea878067e..741534d2e7b1 100644
--- a/sw/inc/bparr.hxx
+++ b/sw/inc/bparr.hxx
@@ -34,9 +34,8 @@ class BigPtrEntry
BlockInfo* pBlock;
sal_uInt16 nOffset;
public:
- virtual ~BigPtrEntry() {}
-protected:
BigPtrEntry() : pBlock(0), nOffset(0) {}
+ virtual ~BigPtrEntry() {}
inline sal_uLong GetPos() const;
inline BigPtrArray& GetArray() const;