sw/qa/extras/uiwriter/uiwriter.cxx | 26 +++++++++++++++----------- 1 file changed, 15 insertions(+), 11 deletions(-)
New commits: commit e9f28d0d98fef5aff63131a8e1c3395da0a422ad Author: Caolán McNamara <caol...@redhat.com> Date: Fri Oct 14 09:23:29 2016 +0100 coverity#1371215 Missing move assignment operator Change-Id: I18732e6c7cc26c056feec0885161bffa53451a24 diff --git a/sw/qa/extras/uiwriter/uiwriter.cxx b/sw/qa/extras/uiwriter/uiwriter.cxx index 73d4de5..b37a6c4 100644 --- a/sw/qa/extras/uiwriter/uiwriter.cxx +++ b/sw/qa/extras/uiwriter/uiwriter.cxx @@ -707,22 +707,26 @@ void SwUiWriterTest::testFdo74981() SwInputField aField(static_cast<SwInputFieldType*>(pWrtShell->GetFieldType(0, RES_INPUTFLD)), OUString("foo"), OUString("bar"), 0, 0); pWrtShell->Insert(aField); - // expect hints - SwNodeIndex aIdx(pDoc->GetNodes().GetEndOfContent(), -1); - SwTextNode* pTextNode = aIdx.GetNode().GetTextNode(); - CPPUNIT_ASSERT(pTextNode->HasHints()); + { + // expect hints + SwNodeIndex aIdx(pDoc->GetNodes().GetEndOfContent(), -1); + SwTextNode* pTextNode = aIdx.GetNode().GetTextNode(); + CPPUNIT_ASSERT(pTextNode->HasHints()); + } // go to the begin of the paragraph and split this node pWrtShell->Left(CRSR_SKIP_CHARS, false, 100, false); pWrtShell->SplitNode(); - // expect only the second paragraph to have hints - aIdx = SwNodeIndex(pDoc->GetNodes().GetEndOfContent(), -1); - pTextNode = aIdx.GetNode().GetTextNode(); - CPPUNIT_ASSERT(pTextNode->HasHints()); - --aIdx; - pTextNode = aIdx.GetNode().GetTextNode(); - CPPUNIT_ASSERT(!pTextNode->HasHints()); + { + // expect only the second paragraph to have hints + SwNodeIndex aIdx(SwNodeIndex(pDoc->GetNodes().GetEndOfContent(), -1)); + SwTextNode* pTextNode = aIdx.GetNode().GetTextNode(); + CPPUNIT_ASSERT(pTextNode->HasHints()); + --aIdx; + pTextNode = aIdx.GetNode().GetTextNode(); + CPPUNIT_ASSERT(!pTextNode->HasHints()); + } } void SwUiWriterTest::testTdf98512()
_______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits