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
0a9773df
Kaydet (Commit)
0a9773df
authored
Haz 13, 2014
tarafından
Stephan Bergmann
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
loplugin:staticcall
Change-Id: I2317522af91c8c60672c72a3b514767039930e22
üst
6d0f3a84
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
11 deletions
+8
-11
stordata.cxx
store/source/stordata.cxx
+8
-11
No files found.
store/source/stordata.cxx
Dosyayı görüntüle @
0a9773df
...
...
@@ -590,12 +590,11 @@ OStoreDirectoryPageObject::scope (
page
::
DataBlock
::
LinkDescriptor
&
rDescr
)
const
{
page
const
&
rPage
=
PAGE
();
OStoreDirectoryDataBlock
const
&
rDataBlock
=
rPage
.
m_aDataBlock
;
sal_uInt32
index0
,
index1
,
index2
,
index3
;
// direct.
sal_uInt32
nCount
=
rDataBlock
.
directCount
();
sal_uInt32
nCount
=
OStoreDirectoryDataBlock
::
directCount
();
sal_uInt32
nLimit
=
nCount
;
if
(
nPage
<
nLimit
)
{
...
...
@@ -612,7 +611,7 @@ OStoreDirectoryPageObject::scope (
// single indirect.
sal_uInt32
const
nCapacity
=
indirect
::
capacityCount
(
rPage
.
m_aDescr
);
nCount
=
rDataBlock
.
singleCount
();
nCount
=
OStoreDirectoryDataBlock
::
singleCount
();
nLimit
=
nCount
*
nCapacity
;
if
(
nPage
<
nLimit
)
{
...
...
@@ -641,7 +640,7 @@ OStoreDirectoryPageObject::scope (
nPage
-=
nLimit
;
// double indirect.
nCount
=
rDataBlock
.
doubleCount
();
nCount
=
OStoreDirectoryDataBlock
::
doubleCount
();
nLimit
=
nCount
*
nCapacity
*
nCapacity
;
if
(
nPage
<
nLimit
)
{
...
...
@@ -676,7 +675,7 @@ OStoreDirectoryPageObject::scope (
nPage
-=
nLimit
;
// triple indirect.
nCount
=
rDataBlock
.
tripleCount
();
nCount
=
OStoreDirectoryDataBlock
::
tripleCount
();
nLimit
=
nCount
*
nCapacity
*
nCapacity
*
nCapacity
;
if
(
nPage
<
nLimit
)
{
...
...
@@ -1012,14 +1011,12 @@ storeError OStoreDirectoryPageObject::truncate (
sal_uInt16
nRemain
,
OStorePageBIOS
&
rBIOS
)
{
OStoreDirectoryDataBlock
const
&
rDataBlock
=
PAGE
().
m_aDataBlock
;
// Enter.
storeError
eErrCode
=
store_E_None
;
if
(
eScope
==
page
::
SCOPE_DIRECT
)
{
// Truncate direct data pages.
sal_uInt16
i
,
n
=
rDataBlock
.
directCount
();
sal_uInt16
i
,
n
=
OStoreDirectoryDataBlock
::
directCount
();
for
(
i
=
n
;
i
>
nRemain
;
i
--
)
{
// Obtain data page location.
...
...
@@ -1042,7 +1039,7 @@ storeError OStoreDirectoryPageObject::truncate (
if
(
eScope
==
page
::
SCOPE_SINGLE
)
{
// Truncate single indirect pages.
sal_uInt16
i
,
n
=
rDataBlock
.
singleCount
();
sal_uInt16
i
,
n
=
OStoreDirectoryDataBlock
::
singleCount
();
for
(
i
=
n
;
i
>
nRemain
;
i
--
)
{
// Truncate single indirect page to zero data pages.
...
...
@@ -1061,7 +1058,7 @@ storeError OStoreDirectoryPageObject::truncate (
if
(
eScope
==
page
::
SCOPE_DOUBLE
)
{
// Truncate double indirect pages.
sal_uInt16
i
,
n
=
rDataBlock
.
doubleCount
();
sal_uInt16
i
,
n
=
OStoreDirectoryDataBlock
::
doubleCount
();
for
(
i
=
n
;
i
>
nRemain
;
i
--
)
{
// Truncate double indirect page to zero single indirect pages.
...
...
@@ -1080,7 +1077,7 @@ storeError OStoreDirectoryPageObject::truncate (
if
(
eScope
==
page
::
SCOPE_TRIPLE
)
{
// Truncate triple indirect pages.
sal_uInt16
i
,
n
=
rDataBlock
.
tripleCount
();
sal_uInt16
i
,
n
=
OStoreDirectoryDataBlock
::
tripleCount
();
for
(
i
=
n
;
i
>
nRemain
;
i
--
)
{
// Truncate to zero double indirect pages.
...
...
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