diff options
author | Caolán McNamara <caolanm@redhat.com> | 2016-09-11 21:12:05 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2016-09-11 21:51:25 +0100 |
commit | 78e57cf6622ac1b424c9e00885e378ee819df882 (patch) | |
tree | 30e3bc48860d59e12f68b8668eebd810a1678772 /sw/qa/extras | |
parent | 8bd5dd43a90576f4c55a05ed2ba1af49d2168bab (diff) |
rework to avoid coverity#1371295 Missing move assignment operator
Change-Id: I6cdaa375525b14299b374273b6651a2a89f0c500
Diffstat (limited to 'sw/qa/extras')
-rw-r--r-- | sw/qa/extras/uiwriter/uiwriter.cxx | 18 |
1 files changed, 11 insertions, 7 deletions
diff --git a/sw/qa/extras/uiwriter/uiwriter.cxx b/sw/qa/extras/uiwriter/uiwriter.cxx index 779d91c32418..8d0ed48feb03 100644 --- a/sw/qa/extras/uiwriter/uiwriter.cxx +++ b/sw/qa/extras/uiwriter/uiwriter.cxx @@ -1950,13 +1950,17 @@ void SwUiWriterTest::testSearchWithTransliterate() { SwDoc* pDoc = createDoc(); SwWrtShell* pWrtShell = pDoc->GetDocShell()->GetWrtShell(); - SwNodeIndex aIdx(pDoc->GetNodes().GetEndOfContent(), -1); - SwPaM aPaM(aIdx); - pDoc->getIDocumentContentOperations().InsertString(aPaM,"This is paragraph one"); - pWrtShell->SplitNode(); - aIdx = SwNodeIndex(pDoc->GetNodes().GetEndOfContent(), -1); - aPaM = SwPaM(aIdx); - pDoc->getIDocumentContentOperations().InsertString(aPaM,"This is Other PARAGRAPH"); + { + SwNodeIndex aIdx(pDoc->GetNodes().GetEndOfContent(), -1); + SwPaM aPaM(aIdx); + pDoc->getIDocumentContentOperations().InsertString(aPaM,"This is paragraph one"); + pWrtShell->SplitNode(); + } + { + SwNodeIndex aIdx(pDoc->GetNodes().GetEndOfContent(), -1); + SwPaM aPaM(aIdx); + pDoc->getIDocumentContentOperations().InsertString(aPaM,"This is Other PARAGRAPH"); + } css::util::SearchOptions2 SearchOpt; SearchOpt.algorithmType = css::util::SearchAlgorithms_ABSOLUTE; SearchOpt.searchFlag = css::util::SearchFlags::ALL_IGNORE_CASE; |