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
b8577031
Kaydet (Commit)
b8577031
authored
Mar 26, 2015
tarafından
Stephan Bergmann
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
const_cast: convert some C-style casts and remove some redundant ones
Change-Id: I313d61fc6e7be3a5513da83d3de9202237306739
üst
bb1c25c8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
ZipFile.cxx
package/source/zipapi/ZipFile.cxx
+2
-2
No files found.
package/source/zipapi/ZipFile.cxx
Dosyayı görüntüle @
b8577031
...
...
@@ -899,7 +899,7 @@ sal_Int32 ZipFile::recover()
if
(
nPos
<
nBufSize
-
30
&&
pBuffer
[
nPos
]
==
'P'
&&
pBuffer
[
nPos
+
1
]
==
'K'
&&
pBuffer
[
nPos
+
2
]
==
3
&&
pBuffer
[
nPos
+
3
]
==
4
)
{
ZipEntry
aEntry
;
MemoryByteGrabber
aMemGrabber
(
Sequence
<
sal_Int8
>
(
((
sal_Int8
*
)(
&
(
pBuffer
[
nPos
+
4
]))
),
26
)
);
MemoryByteGrabber
aMemGrabber
(
Sequence
<
sal_Int8
>
(
&
(
pBuffer
[
nPos
+
4
]
),
26
)
);
aEntry
.
nVersion
=
aMemGrabber
.
ReadInt16
();
if
(
(
aEntry
.
nVersion
&
1
)
!=
1
)
...
...
@@ -969,7 +969,7 @@ sal_Int32 ZipFile::recover()
else
if
(
pBuffer
[
nPos
]
==
'P'
&&
pBuffer
[
nPos
+
1
]
==
'K'
&&
pBuffer
[
nPos
+
2
]
==
7
&&
pBuffer
[
nPos
+
3
]
==
8
)
{
sal_Int64
nCompressedSize
,
nSize
;
MemoryByteGrabber
aMemGrabber
(
Sequence
<
sal_Int8
>
(
((
sal_Int8
*
)(
&
(
pBuffer
[
nPos
+
4
]))
),
12
)
);
MemoryByteGrabber
aMemGrabber
(
Sequence
<
sal_Int8
>
(
&
(
pBuffer
[
nPos
+
4
]
),
12
)
);
sal_Int32
nCRC32
=
aMemGrabber
.
ReadInt32
();
sal_uInt32
nCompressedSize32
=
aMemGrabber
.
ReadUInt32
();
sal_uInt32
nSize32
=
aMemGrabber
.
ReadUInt32
();
...
...
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