diff options
author | Miklos Vajna <vmiklos@collabora.co.uk> | 2015-11-27 11:33:57 +0100 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.co.uk> | 2015-11-27 11:34:51 +0100 |
commit | 1cc460e733b510064bf3ac4b685ab0da6fd86991 (patch) | |
tree | f81a5aa160f1e34e6336659b13e202d8f914e8a2 /sw | |
parent | a8860122fecbaa932a48f41a38077f621275be9d (diff) |
CppunitTest_sw_uiwriter: loplugin:stringconstant
Change-Id: I818056164f9e41ac3b75a92ebfee06e0a1535b8a
Diffstat (limited to 'sw')
-rw-r--r-- | sw/qa/extras/uiwriter/uiwriter.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sw/qa/extras/uiwriter/uiwriter.cxx b/sw/qa/extras/uiwriter/uiwriter.cxx index efacac27a94c..a0547383cb82 100644 --- a/sw/qa/extras/uiwriter/uiwriter.cxx +++ b/sw/qa/extras/uiwriter/uiwriter.cxx @@ -2735,13 +2735,13 @@ void SwUiWriterTest::testTdf94804() SwPaM* pCrsr = pDoc->GetEditShell()->GetCursor(); IDocumentMarkAccess* pIDMAccess(pDoc->getIDocumentMarkAccess()); //make first bookmark, CROSSREF_HEADING, with *empty* name - sw::mark::IMark* pMark1(pIDMAccess->makeMark(*pCrsr, rtl::OUString(""), IDocumentMarkAccess::MarkType::CROSSREF_HEADING_BOOKMARK)); + sw::mark::IMark* pMark1(pIDMAccess->makeMark(*pCrsr, "", IDocumentMarkAccess::MarkType::CROSSREF_HEADING_BOOKMARK)); //get the new(autogenerated) bookmark name rtl::OUString bookmark1name = pMark1->GetName(); //match the bookmark name, it should be like "__RefHeading__**" CPPUNIT_ASSERT(bookmark1name.match("__RefHeading__")); //make second bookmark, CROSSREF_NUMITEM, with *empty* name - sw::mark::IMark* pMark2(pIDMAccess->makeMark(*pCrsr, rtl::OUString(""), IDocumentMarkAccess::MarkType::CROSSREF_NUMITEM_BOOKMARK)); + sw::mark::IMark* pMark2(pIDMAccess->makeMark(*pCrsr, "", IDocumentMarkAccess::MarkType::CROSSREF_NUMITEM_BOOKMARK)); //get the new(autogenerated) bookmark name rtl::OUString bookmark2name = pMark2->GetName(); //match the bookmark name, it should be like "__RefNumPara__**" |