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
6f7ca495
Kaydet (Commit)
6f7ca495
authored
Nis 01, 2014
tarafından
Noel Grandin
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
package: sal_Bool->bool
Change-Id: I66999e5d9f827650f4c1bccb14178f8fa8a57cbf
üst
2cf50102
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
42 additions
and
42 deletions
+42
-42
OleHandler.cxx
filter/source/xsltfilter/OleHandler.cxx
+2
-2
Deflater.hxx
include/package/Deflater.hxx
+7
-7
Inflater.hxx
include/package/Inflater.hxx
+4
-4
Deflater.cxx
package/source/zipapi/Deflater.cxx
+15
-15
Inflater.cxx
package/source/zipapi/Inflater.cxx
+8
-8
XUnbufferedStream.cxx
package/source/zipapi/XUnbufferedStream.cxx
+2
-2
ZipFile.cxx
package/source/zipapi/ZipFile.cxx
+3
-3
ZipOutputStream.cxx
package/source/zipapi/ZipOutputStream.cxx
+1
-1
No files found.
filter/source/xsltfilter/OleHandler.cxx
Dosyayı görüntüle @
6f7ca495
...
...
@@ -128,7 +128,7 @@ namespace XSLT
}
// Decompress the bytes
::
ZipUtils
::
Inflater
*
decompresser
=
new
::
ZipUtils
::
Inflater
(
sal_F
alse
);
::
ZipUtils
::
Inflater
*
decompresser
=
new
::
ZipUtils
::
Inflater
(
f
alse
);
decompresser
->
setInput
(
content
);
Sequence
<
sal_Int8
>
result
(
oleLength
);
decompresser
->
doInflateSegment
(
result
,
0
,
oleLength
);
...
...
@@ -196,7 +196,7 @@ namespace XSLT
// Compress the bytes
Sequence
<
sal_Int8
>
output
(
oledata
.
getLength
());
::
ZipUtils
::
Deflater
*
compresser
=
new
::
ZipUtils
::
Deflater
((
sal_Int32
)
3
,
sal_F
alse
);
::
ZipUtils
::
Deflater
*
compresser
=
new
::
ZipUtils
::
Deflater
((
sal_Int32
)
3
,
f
alse
);
compresser
->
setInputSegment
(
oledata
,
0
,
oledata
.
getLength
());
compresser
->
finish
();
int
compressedDataLength
=
compresser
->
doDeflateSegment
(
output
,
0
,
oledata
.
getLength
());
...
...
include/package/Deflater.hxx
Dosyayı görüntüle @
6f7ca495
...
...
@@ -33,24 +33,24 @@ class DLLPUBLIC_PACKAGE Deflater
protected
:
com
::
sun
::
star
::
uno
::
Sequence
<
sal_Int8
>
sInBuffer
;
sal_Bool
bFinish
;
sal_Bool
bFinished
;
sal_Bool
bSetParams
;
bool
bFinish
;
bool
bFinished
;
bool
bSetParams
;
sal_Int32
nLevel
,
nStrategy
;
sal_Int64
nOffset
,
nLength
;
z_stream
*
pStream
;
void
init
(
sal_Int32
nLevel
,
sal_Int32
nStrategy
,
sal_B
ool
bNowrap
);
void
init
(
sal_Int32
nLevel
,
sal_Int32
nStrategy
,
b
ool
bNowrap
);
sal_Int32
doDeflateBytes
(
com
::
sun
::
star
::
uno
::
Sequence
<
sal_Int8
>
&
rBuffer
,
sal_Int32
nNewOffset
,
sal_Int32
nNewLength
);
public
:
~
Deflater
();
Deflater
(
sal_Int32
nSetLevel
,
sal_B
ool
bNowrap
);
Deflater
(
sal_Int32
nSetLevel
,
b
ool
bNowrap
);
void
SAL_CALL
setInputSegment
(
const
::
com
::
sun
::
star
::
uno
::
Sequence
<
sal_Int8
>&
rBuffer
,
sal_Int32
nNewOffset
,
sal_Int32
nNewLength
);
void
SAL_CALL
setLevel
(
sal_Int32
nNewLevel
);
sal_B
ool
SAL_CALL
needsInput
(
);
b
ool
SAL_CALL
needsInput
(
);
void
SAL_CALL
finish
(
);
sal_B
ool
SAL_CALL
finished
(
);
b
ool
SAL_CALL
finished
(
);
sal_Int32
SAL_CALL
doDeflateSegment
(
::
com
::
sun
::
star
::
uno
::
Sequence
<
sal_Int8
>&
rBuffer
,
sal_Int32
nNewOffset
,
sal_Int32
nNewLength
);
sal_Int64
SAL_CALL
getTotalIn
(
);
sal_Int64
SAL_CALL
getTotalOut
(
);
...
...
include/package/Inflater.hxx
Dosyayı görüntüle @
6f7ca495
...
...
@@ -32,18 +32,18 @@ class DLLPUBLIC_PACKAGE Inflater
typedef
struct
z_stream_s
z_stream
;
protected
:
sal_Bool
bFinished
,
bSetParams
,
bNeedDict
;
bool
bFinished
,
bSetParams
,
bNeedDict
;
sal_Int32
nOffset
,
nLength
,
nLastInflateError
;
z_stream
*
pStream
;
com
::
sun
::
star
::
uno
::
Sequence
<
sal_Int8
>
sInBuffer
;
sal_Int32
doInflateBytes
(
com
::
sun
::
star
::
uno
::
Sequence
<
sal_Int8
>
&
rBuffer
,
sal_Int32
nNewOffset
,
sal_Int32
nNewLength
);
public
:
Inflater
(
sal_Bool
bNoWrap
=
sal_F
alse
);
Inflater
(
bool
bNoWrap
=
f
alse
);
~
Inflater
();
void
SAL_CALL
setInput
(
const
::
com
::
sun
::
star
::
uno
::
Sequence
<
sal_Int8
>&
rBuffer
);
sal_B
ool
SAL_CALL
needsDictionary
(
);
sal_B
ool
SAL_CALL
finished
(
);
b
ool
SAL_CALL
needsDictionary
(
);
b
ool
SAL_CALL
finished
(
);
sal_Int32
SAL_CALL
doInflateSegment
(
::
com
::
sun
::
star
::
uno
::
Sequence
<
sal_Int8
>&
rBuffer
,
sal_Int32
nNewOffset
,
sal_Int32
nNewLength
);
void
SAL_CALL
end
(
);
...
...
package/source/zipapi/Deflater.cxx
Dosyayı görüntüle @
6f7ca495
...
...
@@ -34,7 +34,7 @@ Deflater::~Deflater(void)
{
end
();
}
void
Deflater
::
init
(
sal_Int32
nLevelArg
,
sal_Int32
nStrategyArg
,
sal_B
ool
bNowrap
)
void
Deflater
::
init
(
sal_Int32
nLevelArg
,
sal_Int32
nStrategyArg
,
b
ool
bNowrap
)
{
pStream
=
new
z_stream
;
/* Memset it to 0...sets zalloc/zfree/opaque to NULL */
...
...
@@ -56,10 +56,10 @@ void Deflater::init (sal_Int32 nLevelArg, sal_Int32 nStrategyArg, sal_Bool bNowr
}
}
Deflater
::
Deflater
(
sal_Int32
nSetLevel
,
sal_B
ool
bNowrap
)
:
bFinish
(
sal_F
alse
)
,
bFinished
(
sal_F
alse
)
,
bSetParams
(
sal_F
alse
)
Deflater
::
Deflater
(
sal_Int32
nSetLevel
,
b
ool
bNowrap
)
:
bFinish
(
f
alse
)
,
bFinished
(
f
alse
)
,
bSetParams
(
f
alse
)
,
nLevel
(
nSetLevel
)
,
nStrategy
(
DEFAULT_STRATEGY
)
,
nOffset
(
0
)
...
...
@@ -86,12 +86,12 @@ sal_Int32 Deflater::doDeflateBytes (uno::Sequence < sal_Int8 > &rBuffer, sal_Int
switch
(
nResult
)
{
case
Z_OK
:
bSetParams
=
sal_F
alse
;
bSetParams
=
f
alse
;
nOffset
+=
nLength
-
pStream
->
avail_in
;
nLength
=
pStream
->
avail_in
;
return
nNewLength
-
pStream
->
avail_out
;
case
Z_BUF_ERROR
:
bSetParams
=
sal_F
alse
;
bSetParams
=
f
alse
;
return
0
;
default
:
return
0
;
...
...
@@ -112,13 +112,13 @@ sal_Int32 Deflater::doDeflateBytes (uno::Sequence < sal_Int8 > &rBuffer, sal_Int
switch
(
nResult
)
{
case
Z_STREAM_END
:
bFinished
=
sal_T
rue
;
bFinished
=
t
rue
;
case
Z_OK
:
nOffset
+=
nLength
-
pStream
->
avail_in
;
nLength
=
pStream
->
avail_in
;
return
nNewLength
-
pStream
->
avail_out
;
case
Z_BUF_ERROR
:
bSetParams
=
sal_F
alse
;
bSetParams
=
f
alse
;
return
0
;
default
:
return
0
;
...
...
@@ -143,18 +143,18 @@ void SAL_CALL Deflater::setLevel( sal_Int32 nNewLevel )
if
(
nNewLevel
!=
nLevel
)
{
nLevel
=
nNewLevel
;
bSetParams
=
sal_T
rue
;
bSetParams
=
t
rue
;
}
}
sal_B
ool
SAL_CALL
Deflater
::
needsInput
(
)
b
ool
SAL_CALL
Deflater
::
needsInput
(
)
{
return
nLength
<=
0
;
}
void
SAL_CALL
Deflater
::
finish
(
)
{
bFinish
=
sal_T
rue
;
bFinish
=
t
rue
;
}
sal_B
ool
SAL_CALL
Deflater
::
finished
(
)
b
ool
SAL_CALL
Deflater
::
finished
(
)
{
return
bFinished
;
}
...
...
@@ -178,8 +178,8 @@ void SAL_CALL Deflater::reset( )
#else
z_deflateReset
(
pStream
);
#endif
bFinish
=
sal_F
alse
;
bFinished
=
sal_F
alse
;
bFinish
=
f
alse
;
bFinished
=
f
alse
;
nOffset
=
nLength
=
0
;
}
void
SAL_CALL
Deflater
::
end
(
)
...
...
package/source/zipapi/Inflater.cxx
Dosyayı görüntüle @
6f7ca495
...
...
@@ -26,10 +26,10 @@ using namespace ZipUtils;
/** Provides general purpose decompression using the ZLIB library */
Inflater
::
Inflater
(
sal_B
ool
bNoWrap
)
:
bFinished
(
sal_F
alse
),
bSetParams
(
sal_F
alse
),
bNeedDict
(
sal_F
alse
),
Inflater
::
Inflater
(
b
ool
bNoWrap
)
:
bFinished
(
f
alse
),
bSetParams
(
f
alse
),
bNeedDict
(
f
alse
),
nOffset
(
0
),
nLength
(
0
),
nLastInflateError
(
0
),
...
...
@@ -67,12 +67,12 @@ void SAL_CALL Inflater::setInput( const Sequence< sal_Int8 >& rBuffer )
nLength
=
rBuffer
.
getLength
();
}
sal_B
ool
SAL_CALL
Inflater
::
needsDictionary
(
)
b
ool
SAL_CALL
Inflater
::
needsDictionary
(
)
{
return
bNeedDict
;
}
sal_B
ool
SAL_CALL
Inflater
::
finished
(
)
b
ool
SAL_CALL
Inflater
::
finished
(
)
{
return
bFinished
;
}
...
...
@@ -124,14 +124,14 @@ sal_Int32 Inflater::doInflateBytes (Sequence < sal_Int8 > &rBuffer, sal_Int32 n
switch
(
nResult
)
{
case
Z_STREAM_END
:
bFinished
=
sal_T
rue
;
bFinished
=
t
rue
;
case
Z_OK
:
nOffset
+=
nLength
-
pStream
->
avail_in
;
nLength
=
pStream
->
avail_in
;
return
nNewLength
-
pStream
->
avail_out
;
case
Z_NEED_DICT
:
bNeedDict
=
sal_T
rue
;
bNeedDict
=
t
rue
;
nOffset
+=
nLength
-
pStream
->
avail_in
;
nLength
=
pStream
->
avail_in
;
return
0
;
...
...
package/source/zipapi/XUnbufferedStream.cxx
Dosyayı görüntüle @
6f7ca495
...
...
@@ -54,7 +54,7 @@ XUnbufferedStream::XUnbufferedStream(
,
maEntry
(
rEntry
)
,
mxData
(
rData
)
,
mnBlockSize
(
1
)
,
maInflater
(
sal_T
rue
)
,
maInflater
(
t
rue
)
,
mbRawStream
(
nStreamMode
==
UNBUFF_STREAM_RAW
||
nStreamMode
==
UNBUFF_STREAM_WRAPPEDRAW
)
,
mbWrappedRaw
(
nStreamMode
==
UNBUFF_STREAM_WRAPPEDRAW
)
,
mbFinished
(
sal_False
)
...
...
@@ -117,7 +117,7 @@ XUnbufferedStream::XUnbufferedStream(
,
mxZipSeek
(
xRawStream
,
UNO_QUERY
)
,
mxData
(
rData
)
,
mnBlockSize
(
1
)
,
maInflater
(
sal_T
rue
)
,
maInflater
(
t
rue
)
,
mbRawStream
(
sal_False
)
,
mbWrappedRaw
(
sal_False
)
,
mbFinished
(
sal_False
)
...
...
package/source/zipapi/ZipFile.cxx
Dosyayı görüntüle @
6f7ca495
...
...
@@ -68,7 +68,7 @@ using ZipUtils::Inflater;
ZipFile
::
ZipFile
(
uno
::
Reference
<
XInputStream
>
&
xInput
,
const
uno
::
Reference
<
XComponentContext
>
&
rxContext
,
sal_Bool
bInitialise
)
throw
(
IOException
,
ZipException
,
RuntimeException
)
:
aGrabber
(
xInput
)
,
aInflater
(
sal_True
)
,
aInflater
(
true
)
,
xStream
(
xInput
)
,
xSeek
(
xInput
,
UNO_QUERY
)
,
m_xContext
(
rxContext
)
...
...
@@ -87,7 +87,7 @@ ZipFile::ZipFile( uno::Reference < XInputStream > &xInput, const uno::Reference
ZipFile
::
ZipFile
(
uno
::
Reference
<
XInputStream
>
&
xInput
,
const
uno
::
Reference
<
XComponentContext
>
&
rxContext
,
sal_Bool
bInitialise
,
sal_Bool
bForceRecovery
,
uno
::
Reference
<
XProgressHandler
>
xProgress
)
throw
(
IOException
,
ZipException
,
RuntimeException
)
:
aGrabber
(
xInput
)
,
aInflater
(
sal_True
)
,
aInflater
(
true
)
,
xStream
(
xInput
)
,
xSeek
(
xInput
,
UNO_QUERY
)
,
m_xContext
(
rxContext
)
...
...
@@ -1093,7 +1093,7 @@ void ZipFile::getSizeAndCRC( sal_Int64 nOffset, sal_Int64 nCompressedSize, sal_I
Sequence
<
sal_Int8
>
aBuffer
;
CRC32
aCRC
;
sal_Int64
nRealSize
=
0
;
Inflater
aInflaterLocal
(
sal_T
rue
);
Inflater
aInflaterLocal
(
t
rue
);
sal_Int32
nBlockSize
=
static_cast
<
sal_Int32
>
(
::
std
::
min
(
nCompressedSize
,
static_cast
<
sal_Int64
>
(
32000
)
)
);
aGrabber
.
seek
(
nOffset
);
...
...
package/source/zipapi/ZipOutputStream.cxx
Dosyayı görüntüle @
6f7ca495
...
...
@@ -44,7 +44,7 @@ ZipOutputStream::ZipOutputStream( const uno::Reference< uno::XComponentContext >
:
m_xContext
(
rxContext
)
,
xStream
(
xOStream
)
,
m_aDeflateBuffer
(
n_ConstBufferSize
)
,
aDeflater
(
DEFAULT_COMPRESSION
,
sal_T
rue
)
,
aDeflater
(
DEFAULT_COMPRESSION
,
t
rue
)
,
aChucker
(
xOStream
)
,
pCurrentEntry
(
NULL
)
,
nMethod
(
DEFLATED
)
...
...
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