diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-05-25 14:52:57 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-05-30 18:22:42 +0200 |
commit | 2eebd9119bebb94f9c9f2bf718f5321511276a84 (patch) | |
tree | 3f06797d0e11663df1654a7460b3f5b14d6196d7 /sw/source/core/text/pormulti.cxx | |
parent | 79b233be14e75157aecd97179c568baad0a60016 (diff) |
GetAnyEnd does not need to return a pointer
Change-Id: I1350a340eddad180447c46175b6b21ce787802f3
Reviewed-on: https://gerrit.libreoffice.org/72952
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw/source/core/text/pormulti.cxx')
-rw-r--r-- | sw/source/core/text/pormulti.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sw/source/core/text/pormulti.cxx b/sw/source/core/text/pormulti.cxx index 875d3c1b90a0..ee3f89035e9d 100644 --- a/sw/source/core/text/pormulti.cxx +++ b/sw/source/core/text/pormulti.cxx @@ -982,7 +982,7 @@ std::unique_ptr<SwMultiCreator> SwTextSizeInfo::GetMultiCreator(TextFrameIndex & { break; } - if (startPos.second < *pAttr->GetAnyEnd()) + if (startPos.second < pAttr->GetAnyEnd()) { // sw_redlinehide: ruby *always* splits if (RES_TXTATR_CJK_RUBY == pAttr->Which()) @@ -1128,7 +1128,7 @@ std::unique_ptr<SwMultiCreator> SwTextSizeInfo::GetMultiCreator(TextFrameIndex & TextFrameIndex nTmpEnd; if (pTmp) { - nTmpEnd = m_pFrame->MapModelToView(pNode, *pTmp->GetAnyEnd()); + nTmpEnd = m_pFrame->MapModelToView(pNode, pTmp->GetAnyEnd()); if (nTmpEnd <= rPos) continue; nTmpStart = m_pFrame->MapModelToView(pNode, pTmp->GetStart()); @@ -1233,7 +1233,7 @@ std::unique_ptr<SwMultiCreator> SwTextSizeInfo::GetMultiCreator(TextFrameIndex & TextFrameIndex nTmpEnd; if (pTmp) { - nTmpEnd = m_pFrame->MapModelToView(pNode, *pTmp->GetAnyEnd()); + nTmpEnd = m_pFrame->MapModelToView(pNode, pTmp->GetAnyEnd()); if (nTmpEnd <= n2Start) continue; nTmpStart = m_pFrame->MapModelToView(pNode, pTmp->GetStart()); @@ -1334,7 +1334,7 @@ std::unique_ptr<SwMultiCreator> SwTextSizeInfo::GetMultiCreator(TextFrameIndex & TextFrameIndex nTmpEnd; if (pTmp) { - nTmpEnd = m_pFrame->MapModelToView(pNode, *pTmp->GetAnyEnd()); + nTmpEnd = m_pFrame->MapModelToView(pNode, pTmp->GetAnyEnd()); if (nTmpEnd <= rPos) continue; nTmpStart = m_pFrame->MapModelToView(pNode, pTmp->GetStart()); |