summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2016-10-14 09:23:29 +0100
committerCaolán McNamara <caolanm@redhat.com>2016-10-14 09:23:29 +0100
commite9f28d0d98fef5aff63131a8e1c3395da0a422ad (patch)
tree75fb47141b72bc691d49c12799b20fc32dae068b /sw
parent482f6261791c5467918213f63d198e19c0e7720d (diff)
coverity#1371215 Missing move assignment operator
Change-Id: I18732e6c7cc26c056feec0885161bffa53451a24
Diffstat (limited to 'sw')
-rw-r--r--sw/qa/extras/uiwriter/uiwriter.cxx26
1 files changed, 15 insertions, 11 deletions
diff --git a/sw/qa/extras/uiwriter/uiwriter.cxx b/sw/qa/extras/uiwriter/uiwriter.cxx
index 73d4de576965..b37a6c4d0e42 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()