diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2020-03-26 16:50:06 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2020-03-26 21:07:28 +0100 |
commit | 741d30b5e1b0dcdbafb300ed7c7ad46756ffd946 (patch) | |
tree | 05404018bb4a6c41fedd1e6c21b93aefaa19bfea /sw | |
parent | 0d6a8aaab7c27c8e1836db9a5f81d43d6379cbec (diff) |
Simplify pointer equality comparison
Change-Id: I40b0d398c3207b9062e6068b5e98bd814c6fd699
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/91148
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'sw')
-rw-r--r-- | sw/qa/extras/globalfilter/globalfilter.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sw/qa/extras/globalfilter/globalfilter.cxx b/sw/qa/extras/globalfilter/globalfilter.cxx index e69a7ef4634d..557fec699ce0 100644 --- a/sw/qa/extras/globalfilter/globalfilter.cxx +++ b/sw/qa/extras/globalfilter/globalfilter.cxx @@ -864,7 +864,7 @@ static auto verifyNestedFieldmark(OUString const& rTestName, node1.GetNode().GetTextNode()->GetText().indexOf(CH_TXT_ATR_FIELDSTART)); CPPUNIT_ASSERT_EQUAL_MESSAGE(rTestName.toUtf8().getStr(), sal_Int32(1), innerPos.nContent.GetIndex()); - ::sw::mark::IFieldmark const*const pInner(rIDMA.getFieldmarkAt(innerPos)); + ::sw::mark::IFieldmark *const pInner(rIDMA.getFieldmarkAt(innerPos)); CPPUNIT_ASSERT_MESSAGE(rTestName.toUtf8().getStr(), pInner); OUString const innerString(SwPaM(pInner->GetMarkPos(), pInner->GetOtherMarkPos()).GetText()); CPPUNIT_ASSERT_EQUAL_MESSAGE(rTestName.toUtf8().getStr(), OUString( @@ -899,7 +899,7 @@ static auto verifyNestedFieldmark(OUString const& rTestName, + u"baz" + OUStringChar(CH_TXT_ATR_FIELDEND)), outerString); // must return innermost mark - CPPUNIT_ASSERT_EQUAL(reinterpret_cast<sal_uIntPtr>(pInner), reinterpret_cast<sal_uIntPtr>(rIDMA.getFieldmarkFor(innerPos))); + CPPUNIT_ASSERT_EQUAL(pInner, rIDMA.getFieldmarkFor(innerPos)); } void Test::testNestedFieldmark() |