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
ae0756d8
Kaydet (Commit)
ae0756d8
authored
Eki 09, 2014
tarafından
Matúš Kukan
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
ZipOutputStream: No need to explicitly set default values
Change-Id: Ia3a20e0692e658d847e1b825fc97e32ac8a1854b
üst
9f495d12
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
2 additions
and
22 deletions
+2
-22
ZipOutputStream.hxx
package/inc/ZipOutputStream.hxx
+1
-5
ZipOutputStream.cxx
package/source/zipapi/ZipOutputStream.cxx
+1
-14
ZipPackage.cxx
package/source/zippackage/ZipPackage.cxx
+0
-3
No files found.
package/inc/ZipOutputStream.hxx
Dosyayı görüntüle @
ae0756d8
...
@@ -52,7 +52,7 @@ protected:
...
@@ -52,7 +52,7 @@ protected:
CRC32
m_aCRC
;
CRC32
m_aCRC
;
ByteChucker
m_aChucker
;
ByteChucker
m_aChucker
;
ZipEntry
*
m_pCurrentEntry
;
ZipEntry
*
m_pCurrentEntry
;
sal_Int16
m_n
Method
,
m_nLevel
,
m_n
Digested
;
sal_Int16
m_nDigested
;
bool
m_bFinished
,
m_bEncryptCurrentEntry
;
bool
m_bFinished
,
m_bEncryptCurrentEntry
;
ZipPackageStream
*
m_pCurrentStream
;
ZipPackageStream
*
m_pCurrentStream
;
...
@@ -69,10 +69,6 @@ public:
...
@@ -69,10 +69,6 @@ public:
throw
(
::
com
::
sun
::
star
::
io
::
IOException
,
::
com
::
sun
::
star
::
uno
::
RuntimeException
);
throw
(
::
com
::
sun
::
star
::
io
::
IOException
,
::
com
::
sun
::
star
::
uno
::
RuntimeException
);
// XZipOutputStream interfaces
// XZipOutputStream interfaces
void
SAL_CALL
setMethod
(
sal_Int32
nNewMethod
)
throw
(
::
com
::
sun
::
star
::
uno
::
RuntimeException
);
void
SAL_CALL
setLevel
(
sal_Int32
nNewLevel
)
throw
(
::
com
::
sun
::
star
::
uno
::
RuntimeException
);
void
SAL_CALL
putNextEntry
(
ZipEntry
&
rEntry
,
void
SAL_CALL
putNextEntry
(
ZipEntry
&
rEntry
,
ZipPackageStream
*
pStream
,
ZipPackageStream
*
pStream
,
bool
bEncrypt
=
false
)
bool
bEncrypt
=
false
)
...
...
package/source/zipapi/ZipOutputStream.cxx
Dosyayı görüntüle @
ae0756d8
...
@@ -45,8 +45,6 @@ ZipOutputStream::ZipOutputStream( const uno::Reference< uno::XComponentContext >
...
@@ -45,8 +45,6 @@ ZipOutputStream::ZipOutputStream( const uno::Reference< uno::XComponentContext >
,
m_aDeflater
(
DEFAULT_COMPRESSION
,
true
)
,
m_aDeflater
(
DEFAULT_COMPRESSION
,
true
)
,
m_aChucker
(
xOStream
)
,
m_aChucker
(
xOStream
)
,
m_pCurrentEntry
(
NULL
)
,
m_pCurrentEntry
(
NULL
)
,
m_nMethod
(
DEFLATED
)
,
m_nLevel
(
0
)
,
m_nDigested
(
0
)
,
m_nDigested
(
0
)
,
m_bFinished
(
false
)
,
m_bFinished
(
false
)
,
m_bEncryptCurrentEntry
(
false
)
,
m_bEncryptCurrentEntry
(
false
)
...
@@ -60,17 +58,6 @@ ZipOutputStream::~ZipOutputStream( void )
...
@@ -60,17 +58,6 @@ ZipOutputStream::~ZipOutputStream( void )
delete
m_aZipList
[
i
];
delete
m_aZipList
[
i
];
}
}
void
SAL_CALL
ZipOutputStream
::
setMethod
(
sal_Int32
nNewMethod
)
throw
(
RuntimeException
)
{
m_nMethod
=
static_cast
<
sal_Int16
>
(
nNewMethod
);
}
void
SAL_CALL
ZipOutputStream
::
setLevel
(
sal_Int32
nNewLevel
)
throw
(
RuntimeException
)
{
m_aDeflater
.
setLevel
(
nNewLevel
);
}
void
SAL_CALL
ZipOutputStream
::
putNextEntry
(
ZipEntry
&
rEntry
,
void
SAL_CALL
ZipOutputStream
::
putNextEntry
(
ZipEntry
&
rEntry
,
ZipPackageStream
*
pStream
,
ZipPackageStream
*
pStream
,
bool
bEncrypt
)
bool
bEncrypt
)
...
@@ -81,7 +68,7 @@ void SAL_CALL ZipOutputStream::putNextEntry( ZipEntry& rEntry,
...
@@ -81,7 +68,7 @@ void SAL_CALL ZipOutputStream::putNextEntry( ZipEntry& rEntry,
if
(
rEntry
.
nTime
==
-
1
)
if
(
rEntry
.
nTime
==
-
1
)
rEntry
.
nTime
=
getCurrentDosTime
();
rEntry
.
nTime
=
getCurrentDosTime
();
if
(
rEntry
.
nMethod
==
-
1
)
if
(
rEntry
.
nMethod
==
-
1
)
rEntry
.
nMethod
=
m_nMethod
;
rEntry
.
nMethod
=
DEFLATED
;
rEntry
.
nVersion
=
20
;
rEntry
.
nVersion
=
20
;
rEntry
.
nFlag
=
1
<<
11
;
rEntry
.
nFlag
=
1
<<
11
;
if
(
rEntry
.
nSize
==
-
1
||
rEntry
.
nCompressedSize
==
-
1
||
if
(
rEntry
.
nSize
==
-
1
||
rEntry
.
nCompressedSize
==
-
1
||
...
...
package/source/zippackage/ZipPackage.cxx
Dosyayı görüntüle @
ae0756d8
...
@@ -1139,9 +1139,6 @@ uno::Reference< io::XInputStream > ZipPackage::writeTempFile()
...
@@ -1139,9 +1139,6 @@ uno::Reference< io::XInputStream > ZipPackage::writeTempFile()
// Hand it to the ZipOutputStream:
// Hand it to the ZipOutputStream:
ZipOutputStream
aZipOut
(
m_xContext
,
xTempOut
);
ZipOutputStream
aZipOut
(
m_xContext
,
xTempOut
);
aZipOut
.
setMethod
(
DEFLATED
);
aZipOut
.
setLevel
(
DEFAULT_COMPRESSION
);
try
try
{
{
if
(
m_nFormat
==
embed
::
StorageFormats
::
PACKAGE
)
if
(
m_nFormat
==
embed
::
StorageFormats
::
PACKAGE
)
...
...
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