diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2022-07-25 11:24:37 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2022-07-25 12:33:51 +0200 |
commit | 6cfa03bbfb7397c34fe2ea605a4ef573ae92e4ea (patch) | |
tree | 187e560e145397fbab659fd8283b74ac65791b78 /sw/inc/node.hxx | |
parent | ab12ae777b8213f2a3a8ed9a744adb82a1f75e32 (diff) |
SwIndex/SwIndexReg is only used to deal with SwContentNodes
so make that apparent in the type system and naming, instead of
implicit.
Which requires adding a small helper class for the one place we were
instantiating an SwIndexReg by itselg
Change-Id: I74db37239aed0005e5a2a01916635fa93de638f4
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/137403
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw/inc/node.hxx')
-rw-r--r-- | sw/inc/node.hxx | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/sw/inc/node.hxx b/sw/inc/node.hxx index cf9ebc80bee7..e447c9132d99 100644 --- a/sw/inc/node.hxx +++ b/sw/inc/node.hxx @@ -113,6 +113,9 @@ private: protected: SwStartNode* m_pStartOfSection; + /// only used by SwContentNodeTmp in SwTextNode::Update + SwNode(); + SwNode( const SwNodeIndex &rWhere, const SwNodeType nNodeId ); /// for the initial StartNode @@ -365,6 +368,9 @@ class SW_DLLPUBLIC SwContentNode: public sw::BroadcastingModify, public SwNode, mutable bool mbSetModifyAtAttr; protected: + /// only used by SwContentNodeTmp in SwTextNode::Update + SwContentNode(); + SwContentNode( const SwNodeIndex &rWhere, const SwNodeType nNodeType, SwFormatColl *pFormatColl ); /** the = 0 forces the class to be an abstract base class, but the dtor can be still called |