summaryrefslogtreecommitdiff
path: root/sw/source/core/inc/txtfrm.hxx
diff options
context:
space:
mode:
authorLuboš Luňák <l.lunak@suse.cz>2011-09-23 17:42:33 +0200
committerLuboš Luňák <l.lunak@suse.cz>2011-09-23 18:27:57 +0200
commit6cb1cb26d8b512fa91bed8eb070fb68b6c839dff (patch)
treee43a45fc79c648427171545c07b889e524ecea81 /sw/source/core/inc/txtfrm.hxx
parent822e94a1c96c1dadff606f33f545a402e2a1c674 (diff)
make SwCntntNode* and SwNode* have the same value
For debugging purposes, mainly. Fix also some casts that worked only with SwModify being the first base (there seems to be no real requirement for it being first).
Diffstat (limited to 'sw/source/core/inc/txtfrm.hxx')
-rw-r--r--sw/source/core/inc/txtfrm.hxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/sw/source/core/inc/txtfrm.hxx b/sw/source/core/inc/txtfrm.hxx
index 1d388e6587d9..bb7fc866f3c2 100644
--- a/sw/source/core/inc/txtfrm.hxx
+++ b/sw/source/core/inc/txtfrm.hxx
@@ -31,6 +31,7 @@
#include <tools/mempool.hxx>
#include <tools/string.hxx>
#include "cntfrm.hxx"
+#include "ndtxt.hxx"
#define STRSIZE(x) (sizeof(x)-1)
@@ -333,9 +334,9 @@ public:
// Liefert den zu bearbeitenden Textausschnitt zurueck (inline, s.u.)
const String& GetTxt() const;
inline SwTxtNode *GetTxtNode()
- { return (SwTxtNode*)SwCntntFrm::GetNode(); }
+ { return static_cast< SwTxtNode* >( SwCntntFrm::GetNode()); }
inline const SwTxtNode *GetTxtNode() const
- { return (SwTxtNode*)SwCntntFrm::GetNode(); }
+ { return static_cast< const SwTxtNode* >( SwCntntFrm::GetNode()); }
SwTxtFrm(SwTxtNode * const, SwFrm* );
virtual ~SwTxtFrm();