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
523fc711
Kaydet (Commit)
523fc711
authored
Şub 06, 2018
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
pOptionalCalcSize is never null
Change-Id: I830d02cbac6d281ab7fbeaf43e7af6136896b503
üst
9cb3bd39
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
7 deletions
+5
-7
stgstrms.cxx
sot/source/sdstor/stgstrms.cxx
+4
-6
stgstrms.hxx
sot/source/sdstor/stgstrms.hxx
+1
-1
No files found.
sot/source/sdstor/stgstrms.cxx
Dosyayı görüntüle @
523fc711
...
...
@@ -353,7 +353,7 @@ void StgStrm::SetEntry( StgDirEntry& r )
* for this each time build a simple flat in-memory vector list
* of pages.
*/
void
StgStrm
::
scanBuildPageChainCache
(
sal_Int32
*
pOptionalCalcSize
)
sal_Int32
StgStrm
::
scanBuildPageChainCache
(
)
{
if
(
m_nSize
>
0
)
m_aPagesCache
.
reserve
(
m_nSize
/
m_nPageSize
);
...
...
@@ -384,12 +384,10 @@ void StgStrm::scanBuildPageChainCache(sal_Int32 *pOptionalCalcSize)
if
(
bError
)
{
SAL_WARN
(
"sot"
,
"returning wrong format error"
);
if
(
pOptionalCalcSize
)
m_rIo
.
SetError
(
ERRCODE_IO_WRONGFORMAT
);
m_rIo
.
SetError
(
ERRCODE_IO_WRONGFORMAT
);
m_aPagesCache
.
clear
();
}
if
(
pOptionalCalcSize
)
*
pOptionalCalcSize
=
nOptSize
;
return
nOptSize
;
}
// Compute page number and offset for the given byte position.
...
...
@@ -851,7 +849,7 @@ void StgDataStrm::Init( sal_Int32 nBgn, sal_Int32 nLen )
{
// determine the actual size of the stream by scanning
// the FAT chain and counting the # of pages allocated
scanBuildPageChainCache
(
&
m_nSize
);
m_nSize
=
scanBuildPageChainCache
(
);
}
}
...
...
sot/source/sdstor/stgstrms.hxx
Dosyayı görüntüle @
523fc711
...
...
@@ -73,7 +73,7 @@ protected:
short
m_nOffset
;
// offset into current page
short
m_nPageSize
;
// logical page size
std
::
vector
<
sal_Int32
>
m_aPagesCache
;
void
scanBuildPageChainCache
(
sal_Int32
*
pOptionalCalcSize
);
sal_Int32
scanBuildPageChainCache
(
);
bool
Copy
(
sal_Int32
nFrom
,
sal_Int32
nBytes
);
explicit
StgStrm
(
StgIo
&
);
public
:
...
...
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