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
3b3d738c
Kaydet (Commit)
3b3d738c
authored
Eyl 19, 2012
tarafından
Michael Meeks
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
sot: remove unused Owner construct on StgPage
Change-Id: Idd6616ac11e16b4c4631c607a3dc92417a796521
üst
045227f1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
0 additions
and
8 deletions
+0
-8
stgcache.cxx
sot/source/sdstor/stgcache.cxx
+0
-1
stgcache.hxx
sot/source/sdstor/stgcache.hxx
+0
-2
stgstrms.cxx
sot/source/sdstor/stgstrms.cxx
+0
-5
No files found.
sot/source/sdstor/stgcache.cxx
Dosyayı görüntüle @
3b3d738c
...
...
@@ -70,7 +70,6 @@ StgPage::StgPage( StgCache* p, short n )
pNext2
=
pLast1
=
pLast2
=
NULL
;
pOwner
=
NULL
;
}
StgPage
::~
StgPage
()
...
...
sot/source/sdstor/stgcache.hxx
Dosyayı görüntüle @
3b3d738c
...
...
@@ -85,7 +85,6 @@ class StgPage {
StgCache
*
pCache
;
// the cache
StgPage
*
pNext1
,
*
pLast1
;
// LRU chain
StgPage
*
pNext2
,
*
pLast2
;
// ordered chain
StgDirEntry
*
pOwner
;
// owner
sal_Int32
nPage
;
// page #
sal_uInt8
*
pData
;
// nPageSize characters
short
nData
;
// size of this page
...
...
@@ -97,7 +96,6 @@ public:
sal_Int32
GetPage
()
{
return
nPage
;
}
void
*
GetData
()
{
return
pData
;
}
short
GetSize
()
{
return
nData
;
}
void
SetOwner
(
StgDirEntry
*
p
)
{
pOwner
=
p
;
}
// routines for accessing FAT pages
// Assume that the data is a FAT page and get/put FAT data.
sal_Int32
GetPage
(
short
nOff
)
...
...
sot/source/sdstor/stgstrms.cxx
Dosyayı görüntüle @
3b3d738c
...
...
@@ -868,7 +868,6 @@ void* StgDataStrm::GetPtr( sal_Int32 Pos, sal_Bool bForce, sal_Bool bDirty )
StgPage
*
pPg
=
rIo
.
Get
(
nPage
,
bForce
);
if
(
pPg
&&
nOffset
<
pPg
->
GetSize
())
{
pPg
->
SetOwner
(
pEntry
);
if
(
bDirty
)
pPg
->
SetDirty
();
return
((
sal_uInt8
*
)
pPg
->
GetData
())
+
nOffset
;
...
...
@@ -905,7 +904,6 @@ sal_Int32 StgDataStrm::Read( void* pBuf, sal_Int32 n )
if
(
pPg
)
{
// data is present, so use the cached data
pPg
->
SetOwner
(
pEntry
);
memcpy
(
p
,
pPg
->
GetData
(),
nBytes
);
nRes
=
nBytes
;
}
...
...
@@ -919,7 +917,6 @@ sal_Int32 StgDataStrm::Read( void* pBuf, sal_Int32 n )
pPg
=
rIo
.
Get
(
nPage
,
sal_False
);
if
(
!
pPg
)
break
;
pPg
->
SetOwner
(
pEntry
);
memcpy
(
p
,
(
sal_uInt8
*
)
pPg
->
GetData
()
+
nOffset
,
nBytes
);
nRes
=
nBytes
;
}
...
...
@@ -966,7 +963,6 @@ sal_Int32 StgDataStrm::Write( const void* pBuf, sal_Int32 n )
if
(
pPg
)
{
// data is present, so use the cached data
pPg
->
SetOwner
(
pEntry
);
memcpy
(
pPg
->
GetData
(),
p
,
nBytes
);
pPg
->
SetDirty
();
nRes
=
nBytes
;
...
...
@@ -981,7 +977,6 @@ sal_Int32 StgDataStrm::Write( const void* pBuf, sal_Int32 n )
pPg
=
rIo
.
Get
(
nPage
,
sal_False
);
if
(
!
pPg
)
break
;
pPg
->
SetOwner
(
pEntry
);
memcpy
(
(
sal_uInt8
*
)
pPg
->
GetData
()
+
nOffset
,
p
,
nBytes
);
pPg
->
SetDirty
();
nRes
=
nBytes
;
...
...
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