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
56bc686c
Kaydet (Commit)
56bc686c
authored
Eki 08, 2015
tarafından
Miklos Vajna
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
sot: prefix members of StgAvlNode
Change-Id: Ie6de63b524b99246be3d6d5d6e997c7abda675ad
üst
0df69aa1
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
28 additions
and
28 deletions
+28
-28
stgavl.cxx
sot/source/sdstor/stgavl.cxx
+0
-0
stgavl.hxx
sot/source/sdstor/stgavl.hxx
+3
-3
stgdir.cxx
sot/source/sdstor/stgdir.cxx
+25
-25
No files found.
sot/source/sdstor/stgavl.cxx
Dosyayı görüntüle @
56bc686c
This diff is collapsed.
Click to expand it.
sot/source/sdstor/stgavl.hxx
Dosyayı görüntüle @
56bc686c
...
@@ -36,9 +36,9 @@ private:
...
@@ -36,9 +36,9 @@ private:
void
StgEnum
(
short
&
);
void
StgEnum
(
short
&
);
static
StgAvlNode
*
Rem
(
StgAvlNode
**
,
StgAvlNode
*
,
bool
);
static
StgAvlNode
*
Rem
(
StgAvlNode
**
,
StgAvlNode
*
,
bool
);
protected
:
protected
:
short
nId
;
// iterator ID
short
m_
nId
;
// iterator ID
short
nBalance
;
// indicates tree balance
short
m_
nBalance
;
// indicates tree balance
StgAvlNode
*
pLeft
,
*
pRight
;
// leaves
StgAvlNode
*
m_pLeft
,
*
m_
pRight
;
// leaves
StgAvlNode
();
StgAvlNode
();
public
:
public
:
virtual
~
StgAvlNode
();
virtual
~
StgAvlNode
();
...
...
sot/source/sdstor/stgdir.cxx
Dosyayı görüntüle @
56bc686c
...
@@ -116,15 +116,15 @@ void StgDirEntry::Enum( sal_Int32& n )
...
@@ -116,15 +116,15 @@ void StgDirEntry::Enum( sal_Int32& n )
{
{
sal_Int32
nLeft
=
STG_FREE
,
nRight
=
STG_FREE
,
nDown
=
STG_FREE
;
sal_Int32
nLeft
=
STG_FREE
,
nRight
=
STG_FREE
,
nDown
=
STG_FREE
;
m_nEntry
=
n
++
;
m_nEntry
=
n
++
;
if
(
pLeft
)
if
(
m_
pLeft
)
{
{
static_cast
<
StgDirEntry
*>
(
pLeft
)
->
Enum
(
n
);
static_cast
<
StgDirEntry
*>
(
m_
pLeft
)
->
Enum
(
n
);
nLeft
=
static_cast
<
StgDirEntry
*>
(
pLeft
)
->
m_nEntry
;
nLeft
=
static_cast
<
StgDirEntry
*>
(
m_
pLeft
)
->
m_nEntry
;
}
}
if
(
pRight
)
if
(
m_
pRight
)
{
{
static_cast
<
StgDirEntry
*>
(
pRight
)
->
Enum
(
n
);
static_cast
<
StgDirEntry
*>
(
m_
pRight
)
->
Enum
(
n
);
nRight
=
static_cast
<
StgDirEntry
*>
(
pRight
)
->
m_nEntry
;
nRight
=
static_cast
<
StgDirEntry
*>
(
m_
pRight
)
->
m_nEntry
;
}
}
if
(
m_pDown
)
if
(
m_pDown
)
{
{
...
@@ -140,10 +140,10 @@ void StgDirEntry::Enum( sal_Int32& n )
...
@@ -140,10 +140,10 @@ void StgDirEntry::Enum( sal_Int32& n )
void
StgDirEntry
::
DelTemp
(
bool
bForce
)
void
StgDirEntry
::
DelTemp
(
bool
bForce
)
{
{
if
(
pLeft
)
if
(
m_
pLeft
)
static_cast
<
StgDirEntry
*>
(
pLeft
)
->
DelTemp
(
false
);
static_cast
<
StgDirEntry
*>
(
m_
pLeft
)
->
DelTemp
(
false
);
if
(
pRight
)
if
(
m_
pRight
)
static_cast
<
StgDirEntry
*>
(
pRight
)
->
DelTemp
(
false
);
static_cast
<
StgDirEntry
*>
(
m_
pRight
)
->
DelTemp
(
false
);
if
(
m_pDown
)
if
(
m_pDown
)
{
{
// If the storage is dead, of course all elements are dead, too
// If the storage is dead, of course all elements are dead, too
...
@@ -162,7 +162,7 @@ void StgDirEntry::DelTemp( bool bForce )
...
@@ -162,7 +162,7 @@ void StgDirEntry::DelTemp( bool bForce )
StgAvlNode
::
Remove
(
reinterpret_cast
<
StgAvlNode
**>
(
&
m_pUp
->
m_pDown
),
this
,
bDel
);
StgAvlNode
::
Remove
(
reinterpret_cast
<
StgAvlNode
**>
(
&
m_pUp
->
m_pDown
),
this
,
bDel
);
if
(
!
bDel
)
if
(
!
bDel
)
{
{
pLeft
=
pRight
=
m_pDown
=
0
;
m_pLeft
=
m_
pRight
=
m_pDown
=
0
;
m_bInvalid
=
m_bZombie
=
true
;
m_bInvalid
=
m_bZombie
=
true
;
}
}
}
}
...
@@ -178,11 +178,11 @@ bool StgDirEntry::Store( StgDirStrm& rStrm )
...
@@ -178,11 +178,11 @@ bool StgDirEntry::Store( StgDirStrm& rStrm )
return
false
;
return
false
;
// Do not store the current (maybe not committed) entry
// Do not store the current (maybe not committed) entry
m_aSave
.
Store
(
pEntry
);
m_aSave
.
Store
(
pEntry
);
if
(
pLeft
)
if
(
m_
pLeft
)
if
(
!
static_cast
<
StgDirEntry
*>
(
pLeft
)
->
Store
(
rStrm
)
)
if
(
!
static_cast
<
StgDirEntry
*>
(
m_
pLeft
)
->
Store
(
rStrm
)
)
return
false
;
return
false
;
if
(
pRight
)
if
(
m_
pRight
)
if
(
!
static_cast
<
StgDirEntry
*>
(
pRight
)
->
Store
(
rStrm
)
)
if
(
!
static_cast
<
StgDirEntry
*>
(
m_
pRight
)
->
Store
(
rStrm
)
)
return
false
;
return
false
;
if
(
m_pDown
)
if
(
m_pDown
)
if
(
!
m_pDown
->
Store
(
rStrm
)
)
if
(
!
m_pDown
->
Store
(
rStrm
)
)
...
@@ -218,11 +218,11 @@ bool StgDirEntry::StoreStreams( StgIo& rIo )
...
@@ -218,11 +218,11 @@ bool StgDirEntry::StoreStreams( StgIo& rIo )
{
{
if
(
!
StoreStream
(
rIo
)
)
if
(
!
StoreStream
(
rIo
)
)
return
false
;
return
false
;
if
(
pLeft
)
if
(
m_
pLeft
)
if
(
!
static_cast
<
StgDirEntry
*>
(
pLeft
)
->
StoreStreams
(
rIo
)
)
if
(
!
static_cast
<
StgDirEntry
*>
(
m_
pLeft
)
->
StoreStreams
(
rIo
)
)
return
false
;
return
false
;
if
(
pRight
)
if
(
m_
pRight
)
if
(
!
static_cast
<
StgDirEntry
*>
(
pRight
)
->
StoreStreams
(
rIo
)
)
if
(
!
static_cast
<
StgDirEntry
*>
(
m_
pRight
)
->
StoreStreams
(
rIo
)
)
return
false
;
return
false
;
if
(
m_pDown
)
if
(
m_pDown
)
if
(
!
m_pDown
->
StoreStreams
(
rIo
)
)
if
(
!
m_pDown
->
StoreStreams
(
rIo
)
)
...
@@ -235,10 +235,10 @@ bool StgDirEntry::StoreStreams( StgIo& rIo )
...
@@ -235,10 +235,10 @@ bool StgDirEntry::StoreStreams( StgIo& rIo )
void
StgDirEntry
::
RevertAll
()
void
StgDirEntry
::
RevertAll
()
{
{
m_aEntry
=
m_aSave
;
m_aEntry
=
m_aSave
;
if
(
pLeft
)
if
(
m_
pLeft
)
static_cast
<
StgDirEntry
*>
(
pLeft
)
->
RevertAll
();
static_cast
<
StgDirEntry
*>
(
m_
pLeft
)
->
RevertAll
();
if
(
pRight
)
if
(
m_
pRight
)
static_cast
<
StgDirEntry
*>
(
pRight
)
->
RevertAll
();
static_cast
<
StgDirEntry
*>
(
m_
pRight
)
->
RevertAll
();
if
(
m_pDown
)
if
(
m_pDown
)
m_pDown
->
RevertAll
();
m_pDown
->
RevertAll
();
}
}
...
@@ -249,9 +249,9 @@ bool StgDirEntry::IsDirty()
...
@@ -249,9 +249,9 @@ bool StgDirEntry::IsDirty()
{
{
if
(
m_bDirty
||
m_bInvalid
)
if
(
m_bDirty
||
m_bInvalid
)
return
true
;
return
true
;
if
(
pLeft
&&
static_cast
<
StgDirEntry
*>
(
pLeft
)
->
IsDirty
()
)
if
(
m_pLeft
&&
static_cast
<
StgDirEntry
*>
(
m_
pLeft
)
->
IsDirty
()
)
return
true
;
return
true
;
if
(
pRight
&&
static_cast
<
StgDirEntry
*>
(
pRight
)
->
IsDirty
()
)
if
(
m_pRight
&&
static_cast
<
StgDirEntry
*>
(
m_
pRight
)
->
IsDirty
()
)
return
true
;
return
true
;
if
(
m_pDown
&&
m_pDown
->
IsDirty
()
)
if
(
m_pDown
&&
m_pDown
->
IsDirty
()
)
return
true
;
return
true
;
...
...
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