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
99c1de27
Kaydet (Commit)
99c1de27
authored
Haz 11, 2014
tarafından
Bjoern Michaelsen
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
BOOST_FOREACH and constness
Change-Id: I832bc8fcdfb4997c2eaae3f0cb5d7014df20f2fd
üst
958492d4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
8 deletions
+6
-8
docbm.cxx
sw/source/core/doc/docbm.cxx
+6
-8
No files found.
sw/source/core/doc/docbm.cxx
Dosyayı görüntüle @
99c1de27
...
...
@@ -20,6 +20,7 @@
#include <MarkManager.hxx>
#include <bookmrk.hxx>
#include <boost/bind.hpp>
#include <boost/foreach.hpp>
#include <cntfrm.hxx>
#include <crossrefbookmark.hxx>
#include <annotationmark.hxx>
...
...
@@ -2057,17 +2058,14 @@ void CntntIdxStoreImpl::RestoreBkmks(SwDoc* pDoc, sal_uLong nNode, sal_Int32 nOf
{
IDocumentMarkAccess
*
const
pMarkAccess
=
pDoc
->
getIDocumentMarkAccess
();
SwCntntNode
*
pCNd
=
pDoc
->
GetNodes
()[
nNode
]
->
GetCntntNode
();
for
(
std
::
vector
<
BkmkEntry
>::
const_iterator
pEntry
=
m_aBkmkEntries
.
begin
();
pEntry
!=
m_aBkmkEntries
.
end
();
++
pEntry
)
BOOST_FOREACH
(
const
BkmkEntry
&
aEntry
,
m_aBkmkEntries
)
{
if
(
MarkBase
*
pMark
=
dynamic_cast
<
MarkBase
*>
(
pMarkAccess
->
getAllMarksBegin
()[
pEntry
->
m_nBkmkIdx
].
get
()))
if
(
MarkBase
*
pMark
=
dynamic_cast
<
MarkBase
*>
(
pMarkAccess
->
getAllMarksBegin
()[
aEntry
.
m_nBkmkIdx
].
get
()))
{
SwPosition
aNewPos
(
GetRightMarkPos
(
pMark
,
pEntry
->
m_bOther
));
SwPosition
aNewPos
(
GetRightMarkPos
(
pMark
,
aEntry
.
m_bOther
));
aNewPos
.
nNode
=
*
pCNd
;
aNewPos
.
nContent
.
Assign
(
pCNd
,
pEntry
->
m_nCntnt
+
nOffset
);
SetRightMarkPos
(
pMark
,
pEntry
->
m_bOther
,
&
aNewPos
);
aNewPos
.
nContent
.
Assign
(
pCNd
,
aEntry
.
m_nCntnt
+
nOffset
);
SetRightMarkPos
(
pMark
,
aEntry
.
m_bOther
,
&
aNewPos
);
}
}
}
...
...
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