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
5346394e
Kaydet (Commit)
5346394e
authored
Kas 01, 2012
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
valgrind: Conditional jump or move depends on uninitialised value
Change-Id: I7b59ddc4f9170c33e948f30194a662f27b871fcc
üst
57fb462c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
9 deletions
+10
-9
laycache.cxx
sw/source/core/layout/laycache.cxx
+10
-9
No files found.
sw/source/core/layout/laycache.cxx
Dosyayı görüntüle @
5346394e
...
...
@@ -114,19 +114,19 @@ sal_Bool SwLayCacheImpl::Read( SvStream& rStream )
// height of fly frames
bUseFlyCache
=
aIo
.
GetMinorVersion
()
>=
1
;
sal_uInt8
cFlags
;
sal_uInt32
nIndex
,
nOffset
;
aIo
.
OpenRec
(
SW_LAYCACHE_IO_REC_PAGES
);
aIo
.
OpenFlagRec
();
aIo
.
CloseFlagRec
();
while
(
aIo
.
BytesLeft
()
&&
!
aIo
.
HasError
()
)
{
sal_uInt32
nIndex
(
0
),
nOffset
(
0
);
switch
(
aIo
.
Peek
()
)
{
case
SW_LAYCACHE_IO_REC_PARA
:
{
aIo
.
OpenRec
(
SW_LAYCACHE_IO_REC_PARA
);
cFlags
=
aIo
.
OpenFlagRec
();
sal_uInt8
cFlags
=
aIo
.
OpenFlagRec
();
aIo
.
GetStream
()
>>
nIndex
;
if
(
(
cFlags
&
0x01
)
!=
0
)
aIo
.
GetStream
()
>>
nOffset
;
...
...
@@ -136,6 +136,7 @@ sal_Bool SwLayCacheImpl::Read( SvStream& rStream )
Insert
(
SW_LAYCACHE_IO_REC_PARA
,
nIndex
,
(
xub_StrLen
)
nOffset
);
aIo
.
CloseRec
(
SW_LAYCACHE_IO_REC_PARA
);
break
;
}
case
SW_LAYCACHE_IO_REC_TABLE
:
aIo
.
OpenRec
(
SW_LAYCACHE_IO_REC_TABLE
);
aIo
.
OpenFlagRec
();
...
...
@@ -150,8 +151,8 @@ sal_Bool SwLayCacheImpl::Read( SvStream& rStream )
aIo
.
OpenRec
(
SW_LAYCACHE_IO_REC_FLY
);
aIo
.
OpenFlagRec
();
aIo
.
CloseFlagRec
();
sal_Int32
nX
,
nY
,
nW
,
nH
;
sal_uInt16
nPgNum
;
sal_Int32
nX
(
0
),
nY
(
0
),
nW
(
0
),
nH
(
0
)
;
sal_uInt16
nPgNum
(
0
)
;
aIo
.
GetStream
()
>>
nPgNum
>>
nIndex
>>
nX
>>
nY
>>
nW
>>
nH
;
SwFlyCache
*
pFly
=
new
SwFlyCache
(
nPgNum
,
nIndex
,
nX
,
nY
,
nW
,
nH
);
...
...
@@ -1188,7 +1189,7 @@ sal_Bool SwLayCacheIoImpl::OpenRec( sal_uInt8 cType )
}
else
{
sal_uInt32
nVal
;
sal_uInt32
nVal
(
0
)
;
*
pStream
>>
nVal
;
sal_uInt8
cRecTyp
=
(
sal_uInt8
)
nVal
;
if
(
!
nVal
||
cRecTyp
!=
cType
||
...
...
@@ -1266,7 +1267,7 @@ sal_uInt32 SwLayCacheIoImpl::BytesLeft()
sal_uInt8
SwLayCacheIoImpl
::
Peek
()
{
sal_uInt8
c
=
0
;
sal_uInt8
c
(
0
)
;
if
(
!
bError
)
{
sal_uInt32
nPos
=
pStream
->
Tell
();
...
...
@@ -1292,7 +1293,7 @@ void SwLayCacheIoImpl::SkipRec()
sal_uInt8
SwLayCacheIoImpl
::
OpenFlagRec
()
{
OSL_ENSURE
(
!
bWriteMode
,
"OpenFlagRec illegal in write mode"
);
sal_uInt8
cFlags
;
sal_uInt8
cFlags
(
0
)
;
*
pStream
>>
cFlags
;
nFlagRecEnd
=
pStream
->
Tell
()
+
(
cFlags
&
0x0F
);
return
(
cFlags
>>
4
);
...
...
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