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
e3167924
Kaydet (Commit)
e3167924
authored
Mar 15, 2015
tarafından
Bjoern Michaelsen
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
make SwClientIter::GoStart/GoEnd private
Change-Id: I0c0f84d110e8ea4f84404a8ca17d0c982c9200c4
üst
a21948bd
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
19 deletions
+17
-19
calbck.hxx
sw/inc/calbck.hxx
+17
-19
No files found.
sw/inc/calbck.hxx
Dosyayı görüntüle @
e3167924
...
...
@@ -243,10 +243,8 @@ protected:
class
SwClientIter
SAL_FINAL
:
public
sw
::
Ring
<
SwClientIter
>
{
friend
SwClient
*
SwModify
::
Remove
(
SwClient
*
);
///< for pointer adjustments
friend
void
SwModify
::
Add
(
SwClient
*
);
///< for pointer adjustments
friend
class
SwModify
;
template
<
typename
E
,
typename
S
>
friend
class
SwIterator
;
///< for typed interation
friend
void
SwModify
::
ModifyBroadcast
(
const
SfxPoolItem
*
,
const
SfxPoolItem
*
,
TypeId
);
///< for typed iteration
const
SwModify
&
m_rRoot
;
...
...
@@ -259,6 +257,22 @@ class SwClientIter SAL_FINAL : public sw::Ring<SwClientIter>
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
()
{
if
((
m_pPosition
=
const_cast
<
SwClient
*>
(
m_rRoot
.
GetDepends
())))
while
(
m_pPosition
->
m_pLeft
)
m_pPosition
=
static_cast
<
SwClient
*>
(
m_pPosition
->
m_pLeft
);
return
m_pCurrent
=
m_pPosition
;
}
SwClient
*
GoEnd
()
{
if
(
!
m_pPosition
)
m_pPosition
=
const_cast
<
SwClient
*>
(
m_rRoot
.
GetDepends
());
if
(
m_pPosition
)
while
(
m_pPosition
->
m_pRight
)
m_pPosition
=
static_cast
<
SwClient
*>
(
m_pPosition
->
m_pRight
);
return
m_pCurrent
=
m_pPosition
;
}
static
SW_DLLPUBLIC
SwClientIter
*
our_pClientIters
;
...
...
@@ -286,22 +300,6 @@ public:
m_pPosition
=
static_cast
<
SwClient
*>
(
m_pPosition
->
m_pRight
);
return
m_pCurrent
=
m_pPosition
;
}
SwClient
*
GoStart
()
{
if
((
m_pPosition
=
const_cast
<
SwClient
*>
(
m_rRoot
.
GetDepends
())))
while
(
m_pPosition
->
m_pLeft
)
m_pPosition
=
static_cast
<
SwClient
*>
(
m_pPosition
->
m_pLeft
);
return
m_pCurrent
=
m_pPosition
;
}
SwClient
*
GoEnd
()
{
if
(
!
m_pPosition
)
m_pPosition
=
const_cast
<
SwClient
*>
(
m_rRoot
.
GetDepends
());
if
(
m_pPosition
)
while
(
m_pPosition
->
m_pRight
)
m_pPosition
=
static_cast
<
SwClient
*>
(
m_pPosition
->
m_pRight
);
return
m_pCurrent
=
m_pPosition
;
}
// returns the current SwClient object, wether it is still a client or not
SwClient
&
operator
*
()
const
...
...
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