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
181feb38
Kaydet (Commit)
181feb38
authored
Mar 18, 2015
tarafından
Bjoern Michaelsen
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
more privacy tweaks
Change-Id: Id0d81d2216692f9b596493b5a424fea656295b71
üst
3170b41d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
12 deletions
+8
-12
calbck.hxx
sw/inc/calbck.hxx
+7
-11
calbck.cxx
sw/source/core/attr/calbck.cxx
+1
-1
No files found.
sw/inc/calbck.hxx
Dosyayı görüntüle @
181feb38
...
...
@@ -247,13 +247,18 @@ namespace sw
{
class
ClientIteratorBase
SAL_FINAL
:
public
sw
::
Ring
<
::
sw
::
ClientIteratorBase
>
{
friend
SwModify
;
friend
SwClient
*
SwModify
::
Remove
(
SwClient
*
);
friend
void
SwModify
::
Add
(
SwClient
*
);
template
<
typename
E
,
typename
S
>
friend
class
::
SwIterator
;
///< for typed interation
const
SwModify
&
m_rRoot
;
// the current object in an iteration
SwClient
*
m_pCurrent
;
// in case the current object is already removed, the next object in the list
// is marked down to become the current object in the next step
// this is necessary because iteration requires access to members of the current object
SwClient
*
m_pPosition
;
static
SW_DLLPUBLIC
ClientIteratorBase
*
our_pClientIters
;
ClientIteratorBase
(
const
SwModify
&
rModify
)
:
m_rRoot
(
rModify
)
...
...
@@ -262,10 +267,6 @@ namespace sw
our_pClientIters
=
this
;
m_pCurrent
=
m_pPosition
=
const_cast
<
SwClient
*>
(
m_rRoot
.
GetDepends
());
}
// in case the current object is already removed, the next object in the list
// is marked down to become the current object in the next step
// this is necessary because iteration requires access to members of the current object
SwClient
*
m_pPosition
;
SwClient
*
GetLeftOfPos
()
{
return
static_cast
<
SwClient
*>
(
m_pPosition
->
m_pLeft
);
}
SwClient
*
GetRighOfPos
()
{
return
static_cast
<
SwClient
*>
(
m_pPosition
->
m_pRight
);
}
SwClient
*
GoStart
()
...
...
@@ -275,11 +276,6 @@ namespace sw
m_pPosition
=
static_cast
<
SwClient
*>
(
m_pPosition
->
m_pLeft
);
return
m_pCurrent
=
m_pPosition
;
}
const
SwModify
&
GetModify
()
const
{
return
m_rRoot
;
}
static
SW_DLLPUBLIC
ClientIteratorBase
*
our_pClientIters
;
public
:
~
ClientIteratorBase
()
SAL_OVERRIDE
{
assert
(
our_pClientIters
);
...
...
sw/source/core/attr/calbck.cxx
Dosyayı görüntüle @
181feb38
...
...
@@ -152,7 +152,7 @@ void SwModify::Add( SwClient* pDepend )
{
for
(
auto
&
rIter
:
sw
::
ClientIteratorBase
::
our_pClientIters
->
GetRingContainer
())
{
OSL_ENSURE
(
&
rIter
.
GetModify
()
!=
pRoot
,
"Client added to active ClientIter"
);
OSL_ENSURE
(
&
rIter
.
m_rRoot
!=
pRoot
,
"Client added to active ClientIter"
);
}
}
#endif
...
...
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