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
9bfd0481
Kaydet (Commit)
9bfd0481
authored
Mar 13, 2015
tarafından
Bjoern Michaelsen
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
simplify SwClientIter iteration
Change-Id: I078fd3808768cd49190984278207045cc73aa8e6
üst
8152cf6d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
14 deletions
+13
-14
calbck.hxx
sw/inc/calbck.hxx
+8
-0
calbck.cxx
sw/source/core/attr/calbck.cxx
+5
-14
No files found.
sw/inc/calbck.hxx
Dosyayı görüntüle @
9bfd0481
...
...
@@ -276,6 +276,14 @@ public:
// otherwise it returns the next SwClient that still is
SwClient
*
operator
()()
const
{
return
m_pPosition
;
}
// returns the current SwClient object, wether it is still a client or not
SwClient
&
operator
*
()
const
{
return
*
m_pCurrent
;
}
// returns the current SwClient object, wether it is still a client or not
SwClient
*
operator
->
()
const
{
return
m_pCurrent
;
}
explicit
operator
bool
()
const
{
return
m_pCurrent
!=
nullptr
;
}
// return "true" if an object was removed from a client chain in iteration
// adding objects to a client chain in iteration is forbidden
...
...
sw/source/core/attr/calbck.cxx
Dosyayı görüntüle @
9bfd0481
...
...
@@ -272,24 +272,15 @@ void SwModify::CheckCaching( const sal_uInt16 nWhich )
void
SwModify
::
CallSwClientNotify
(
const
SfxHint
&
rHint
)
const
{
SwClientIter
aIter
(
*
this
);
SwClient
*
pClient
=
aIter
.
GoStart
();
while
(
pClient
)
{
pClient
->
SwClientNotify
(
*
this
,
rHint
);
pClient
=
++
aIter
;
}
for
(
SwClientIter
aIter
(
*
this
);
aIter
;
++
aIter
)
aIter
->
SwClientNotify
(
*
this
,
rHint
);
}
void
SwModify
::
ModifyBroadcast
(
const
SfxPoolItem
*
pOldValue
,
const
SfxPoolItem
*
pNewValue
,
TypeId
nType
)
{
SwClientIter
aIter
(
*
this
);
SwClient
*
pClient
=
aIter
.
First
(
nType
);
while
(
pClient
)
{
pClient
->
Modify
(
pOldValue
,
pNewValue
);
pClient
=
aIter
.
Next
();
}
SwClientIter
aIter
(
*
this
);
for
(
aIter
.
First
(
nType
);
aIter
;
aIter
.
Next
())
aIter
->
Modify
(
pOldValue
,
pNewValue
);
}
SwDepend
::
SwDepend
(
SwClient
*
pTellHim
,
SwModify
*
pDepend
)
...
...
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