Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
core
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
LibreOffice
core
Commits
1cc460e7
Kaydet (Commit)
1cc460e7
authored
Kas 27, 2015
tarafından
Miklos Vajna
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
CppunitTest_sw_uiwriter: loplugin:stringconstant
Change-Id: I818056164f9e41ac3b75a92ebfee06e0a1535b8a
üst
a8860122
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
uiwriter.cxx
sw/qa/extras/uiwriter/uiwriter.cxx
+2
-2
No files found.
sw/qa/extras/uiwriter/uiwriter.cxx
Dosyayı görüntüle @
1cc460e7
...
@@ -2735,13 +2735,13 @@ void SwUiWriterTest::testTdf94804()
...
@@ -2735,13 +2735,13 @@ void SwUiWriterTest::testTdf94804()
SwPaM
*
pCrsr
=
pDoc
->
GetEditShell
()
->
GetCursor
();
SwPaM
*
pCrsr
=
pDoc
->
GetEditShell
()
->
GetCursor
();
IDocumentMarkAccess
*
pIDMAccess
(
pDoc
->
getIDocumentMarkAccess
());
IDocumentMarkAccess
*
pIDMAccess
(
pDoc
->
getIDocumentMarkAccess
());
//make first bookmark, CROSSREF_HEADING, with *empty* name
//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
//get the new(autogenerated) bookmark name
rtl
::
OUString
bookmark1name
=
pMark1
->
GetName
();
rtl
::
OUString
bookmark1name
=
pMark1
->
GetName
();
//match the bookmark name, it should be like "__RefHeading__**"
//match the bookmark name, it should be like "__RefHeading__**"
CPPUNIT_ASSERT
(
bookmark1name
.
match
(
"__RefHeading__"
));
CPPUNIT_ASSERT
(
bookmark1name
.
match
(
"__RefHeading__"
));
//make second bookmark, CROSSREF_NUMITEM, with *empty* name
//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
//get the new(autogenerated) bookmark name
rtl
::
OUString
bookmark2name
=
pMark2
->
GetName
();
rtl
::
OUString
bookmark2name
=
pMark2
->
GetName
();
//match the bookmark name, it should be like "__RefNumPara__**"
//match the bookmark name, it should be like "__RefNumPara__**"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment