summaryrefslogtreecommitdiff
path: root/sw/source/core/doc/docbm.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2021-10-19 09:08:35 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2021-10-21 15:25:56 +0200
commit5f9ffc31cd1b5433c354c7d39ce1d80fa0e57fc8 (patch)
tree8736f233563535eb3aa5fa019bb92a9970970428 /sw/source/core/doc/docbm.cxx
parent81debfba86b1d67d1c2e0ecd9c10ca35c3e7de5e (diff)
introduce SwNodeOffset strong typedef
for indexing into node children. Replaces various usage of sal_uLong, tools::Long, sal_uInt32 with an underlying type of sal_Int32. Also add a NODE_OFFSET_MAX constant to replace usage of ULONG_MAX Change-Id: I2f466922e1ebc19029bb2883d2b29aa4c0614170 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/123892 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw/source/core/doc/docbm.cxx')
-rw-r--r--sw/source/core/doc/docbm.cxx12
1 files changed, 6 insertions, 6 deletions
diff --git a/sw/source/core/doc/docbm.cxx b/sw/source/core/doc/docbm.cxx
index 56510b143ab0..e9c0ce701eba 100644
--- a/sw/source/core/doc/docbm.cxx
+++ b/sw/source/core/doc/docbm.cxx
@@ -461,9 +461,9 @@ namespace
const SwPosition* const pStPos = &pMark->GetMarkStart();
const SwPosition* const pEndPos = &pMark->GetMarkEnd();
SAL_INFO("sw.core",
- pStPos->nNode.GetIndex() << "," <<
+ sal_Int32(pStPos->nNode.GetIndex()) << "," <<
pStPos->nContent.GetIndex() << " " <<
- pEndPos->nNode.GetIndex() << "," <<
+ sal_Int32(pEndPos->nNode.GetIndex()) << "," <<
pEndPos->nContent.GetIndex() << " " <<
typeid(*pMark).name() << " " <<
pMark->GetName());
@@ -555,9 +555,9 @@ namespace sw::mark
pPos2 = rPaM.GetMark();
SAL_INFO("sw.core",
rName << " " <<
- pPos1->nNode.GetIndex() << "," <<
+ sal_Int32(pPos1->nNode.GetIndex() )<< "," <<
pPos1->nContent.GetIndex() << " " <<
- pPos2->nNode.GetIndex() << "," <<
+ sal_Int32(pPos2->nNode.GetIndex()) << "," <<
pPos2->nContent.GetIndex());
}
#endif
@@ -1834,7 +1834,7 @@ SaveBookmark::SaveBookmark(
}
else
{
- m_nNode2 = ULONG_MAX;
+ m_nNode2 = NODE_OFFSET_MAX;
m_nContent2 = -1;
}
}
@@ -1848,7 +1848,7 @@ void SaveBookmark::SetInDoc(
if(pIdx)
aPam.GetPoint()->nContent = *pIdx;
- if(ULONG_MAX != m_nNode2)
+ if(NODE_OFFSET_MAX != m_nNode2)
{
aPam.SetMark();