summaryrefslogtreecommitdiff
path: root/sw/source/core/edit/edattr.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2022-08-01 10:01:59 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2022-08-02 13:57:14 +0200
commitc1c195afab72794a1f0d5ed63c2e3fe6f65bfa84 (patch)
treee64b047be56d1079ba1976456c5df70bb957b157 /sw/source/core/edit/edattr.cxx
parentd11f2e00593300dc68bcd11e23ad05116465adba (diff)
introduce SwPosition::GetNode
as part of the process of hiding the internals of SwPosition largely done by doing: git grep -lF 'nNode.GetNode' | xargs perl -pi -e 's/nNode\.GetNode/GetNode/g' Change-Id: Id1937df1bd5a54677c2c1bbfb2d693a4e22a7b98 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/137671 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw/source/core/edit/edattr.cxx')
-rw-r--r--sw/source/core/edit/edattr.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/sw/source/core/edit/edattr.cxx b/sw/source/core/edit/edattr.cxx
index dbb4bfa67edf..a18bd4488301 100644
--- a/sw/source/core/edit/edattr.cxx
+++ b/sw/source/core/edit/edattr.cxx
@@ -669,7 +669,7 @@ SvtScriptType SwEditShell::GetScriptType() const
auto [pStt, pEnd] = rPaM.StartEnd(); // SwPosition*
if( pStt == pEnd || *pStt == *pEnd )
{
- const SwTextNode* pTNd = pStt->nNode.GetNode().GetTextNode();
+ const SwTextNode* pTNd = pStt->GetNode().GetTextNode();
if( pTNd )
{
// try to get SwScriptInfo
@@ -802,7 +802,7 @@ LanguageType SwEditShell::GetCurLang() const
{
const SwPaM* pCursor = GetCursor();
const SwPosition& rPos = *pCursor->GetPoint();
- const SwTextNode* pTNd = rPos.nNode.GetNode().GetTextNode();
+ const SwTextNode* pTNd = rPos.GetNode().GetTextNode();
LanguageType nLang;
if( pTNd )
{
@@ -822,7 +822,7 @@ sal_uInt16 SwEditShell::GetScalingOfSelectedText() const
{
const SwPaM* pCursor = GetCursor();
const SwPosition* pStt = pCursor->Start();
- const SwTextNode* pTNd = pStt->nNode.GetNode().GetTextNode();
+ const SwTextNode* pTNd = pStt->GetNode().GetTextNode();
OSL_ENSURE( pTNd, "no textnode available" );
sal_uInt16 nScaleWidth;