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
363c1ede
Kaydet (Commit)
363c1ede
authored
Agu 31, 2012
tarafından
Miklos Vajna
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
package: kill RTL_CONSTASCII_USTRINGPARAM in zipapi
Change-Id: Ic53f613cfaa5bd4affd0c27b5ed4ed20536ee055
üst
38d446da
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
16 additions
and
16 deletions
+16
-16
ByteGrabber.cxx
package/source/zipapi/ByteGrabber.cxx
+4
-4
XUnbufferedStream.cxx
package/source/zipapi/XUnbufferedStream.cxx
+6
-6
ZipFile.cxx
package/source/zipapi/ZipFile.cxx
+0
-0
ZipOutputStream.cxx
package/source/zipapi/ZipOutputStream.cxx
+2
-2
blowfishcontext.cxx
package/source/zipapi/blowfishcontext.cxx
+3
-3
sha1context.cxx
package/source/zipapi/sha1context.cxx
+1
-1
No files found.
package/source/zipapi/ByteGrabber.cxx
Dosyayı görüntüle @
363c1ede
...
...
@@ -64,14 +64,14 @@ sal_Int64 SAL_CALL ByteGrabber::seek( sal_Int64 location )
{
sal_Int64
nLen
=
xSeek
->
getLength
();
if
(
location
<
0
||
location
>
nLen
)
throw
lang
::
IllegalArgumentException
(
::
rtl
::
OUString
(
RTL_CONSTASCII_USTRINGPARAM
(
OSL_LOG_PREFIX
)
)
,
uno
::
Reference
<
uno
::
XInterface
>
(),
1
);
throw
lang
::
IllegalArgumentException
(
OSL_LOG_PREFIX
,
uno
::
Reference
<
uno
::
XInterface
>
(),
1
);
if
(
location
>
nLen
)
location
=
nLen
;
xSeek
->
seek
(
location
);
return
location
;
}
else
throw
io
::
IOException
(
::
rtl
::
OUString
(
RTL_CONSTASCII_USTRINGPARAM
(
OSL_LOG_PREFIX
)
)
,
uno
::
Reference
<
uno
::
XInterface
>
()
);
throw
io
::
IOException
(
OSL_LOG_PREFIX
,
uno
::
Reference
<
uno
::
XInterface
>
()
);
}
sal_Int64
SAL_CALL
ByteGrabber
::
getPosition
(
)
...
...
@@ -81,7 +81,7 @@ sal_Int64 SAL_CALL ByteGrabber::getPosition( )
if
(
xSeek
.
is
()
)
return
xSeek
->
getPosition
();
else
throw
io
::
IOException
(
::
rtl
::
OUString
(
RTL_CONSTASCII_USTRINGPARAM
(
OSL_LOG_PREFIX
)
)
,
uno
::
Reference
<
uno
::
XInterface
>
()
);
throw
io
::
IOException
(
OSL_LOG_PREFIX
,
uno
::
Reference
<
uno
::
XInterface
>
()
);
}
sal_Int64
SAL_CALL
ByteGrabber
::
getLength
(
)
...
...
@@ -91,7 +91,7 @@ sal_Int64 SAL_CALL ByteGrabber::getLength( )
if
(
xSeek
.
is
()
)
return
xSeek
->
getLength
();
else
throw
io
::
IOException
(
::
rtl
::
OUString
(
RTL_CONSTASCII_USTRINGPARAM
(
OSL_LOG_PREFIX
)
)
,
uno
::
Reference
<
uno
::
XInterface
>
()
);
throw
io
::
IOException
(
OSL_LOG_PREFIX
,
uno
::
Reference
<
uno
::
XInterface
>
()
);
}
ByteGrabber
&
ByteGrabber
::
operator
>>
(
sal_Int8
&
rInt8
)
...
...
package/source/zipapi/XUnbufferedStream.cxx
Dosyayı görüntüle @
363c1ede
...
...
@@ -230,15 +230,15 @@ sal_Int32 SAL_CALL XUnbufferedStream::readBytes( Sequence< sal_Int8 >& aData, sa
if
(
nRead
>
nRequestedBytes
)
throw
RuntimeException
(
OUString
(
RTL_CONSTASCII_USTRINGPARAM
(
"Should not be possible to read more then requested!"
)
)
,
"Should not be possible to read more then requested!"
,
Reference
<
XInterface
>
()
);
if
(
maInflater
.
finished
()
||
maInflater
.
getLastInflateError
()
)
throw
ZipIOException
(
OUString
(
RTL_CONSTASCII_USTRINGPARAM
(
"The stream seems to be broken!"
)
)
,
throw
ZipIOException
(
"The stream seems to be broken!"
,
Reference
<
XInterface
>
()
);
if
(
maInflater
.
needsDictionary
()
)
throw
ZipIOException
(
OUString
(
RTL_CONSTASCII_USTRINGPARAM
(
"Dictionaries are not supported!"
)
)
,
throw
ZipIOException
(
"Dictionaries are not supported!"
,
Reference
<
XInterface
>
()
);
sal_Int32
nDiff
=
static_cast
<
sal_Int32
>
(
mnZipEnd
-
mnZipCurrent
);
...
...
@@ -253,7 +253,7 @@ sal_Int32 SAL_CALL XUnbufferedStream::readBytes( Sequence< sal_Int8 >& aData, sa
sal_Int32
nZipRead
=
mxZipStream
->
readBytes
(
maCompBuffer
,
nToRead
);
if
(
nZipRead
<
nToRead
)
throw
ZipIOException
(
OUString
(
RTL_CONSTASCII_USTRINGPARAM
(
"No expected data!"
)
)
,
throw
ZipIOException
(
"No expected data!"
,
Reference
<
XInterface
>
()
);
mnZipCurrent
+=
nZipRead
;
...
...
@@ -280,7 +280,7 @@ sal_Int32 SAL_CALL XUnbufferedStream::readBytes( Sequence< sal_Int8 >& aData, sa
}
else
{
throw
ZipIOException
(
OUString
(
RTL_CONSTASCII_USTRINGPARAM
(
"The stream seems to be broken!"
)
)
,
throw
ZipIOException
(
"The stream seems to be broken!"
,
Reference
<
XInterface
>
()
);
}
}
...
...
@@ -297,7 +297,7 @@ sal_Int32 SAL_CALL XUnbufferedStream::readBytes( Sequence< sal_Int8 >& aData, sa
maCRC
.
update
(
aData
);
if
(
mnZipSize
+
maHeader
.
getLength
()
==
mnMyCurrent
&&
maCRC
.
getValue
()
!=
maEntry
.
nCrc
)
throw
ZipIOException
(
OUString
(
RTL_CONSTASCII_USTRINGPARAM
(
"The stream seems to be broken!"
)
)
,
throw
ZipIOException
(
"The stream seems to be broken!"
,
Reference
<
XInterface
>
()
);
}
}
...
...
package/source/zipapi/ZipFile.cxx
Dosyayı görüntüle @
363c1ede
This diff is collapsed.
Click to expand it.
package/source/zipapi/ZipOutputStream.cxx
Dosyayı görüntüle @
363c1ede
...
...
@@ -304,7 +304,7 @@ void ZipOutputStream::writeCEN( const ZipEntry &rEntry )
throw
(
IOException
,
RuntimeException
)
{
if
(
!::
comphelper
::
OStorageHelper
::
IsValidZipEntryFileName
(
rEntry
.
sPath
,
sal_True
)
)
throw
IOException
(
::
rtl
::
OUString
(
RTL_CONSTASCII_USTRINGPARAM
(
"Unexpected character is used in file name."
)
)
,
uno
::
Reference
<
XInterface
>
()
);
throw
IOException
(
"Unexpected character is used in file name."
,
uno
::
Reference
<
XInterface
>
()
);
::
rtl
::
OString
sUTF8Name
=
::
rtl
::
OUStringToOString
(
rEntry
.
sPath
,
RTL_TEXTENCODING_UTF8
);
sal_Int16
nNameLength
=
static_cast
<
sal_Int16
>
(
sUTF8Name
.
getLength
()
);
...
...
@@ -353,7 +353,7 @@ sal_Int32 ZipOutputStream::writeLOC( const ZipEntry &rEntry )
throw
(
IOException
,
RuntimeException
)
{
if
(
!::
comphelper
::
OStorageHelper
::
IsValidZipEntryFileName
(
rEntry
.
sPath
,
sal_True
)
)
throw
IOException
(
::
rtl
::
OUString
(
RTL_CONSTASCII_USTRINGPARAM
(
"Unexpected character is used in file name."
)
)
,
uno
::
Reference
<
XInterface
>
()
);
throw
IOException
(
"Unexpected character is used in file name."
,
uno
::
Reference
<
XInterface
>
()
);
::
rtl
::
OString
sUTF8Name
=
::
rtl
::
OUStringToOString
(
rEntry
.
sPath
,
RTL_TEXTENCODING_UTF8
);
sal_Int16
nNameLength
=
static_cast
<
sal_Int16
>
(
sUTF8Name
.
getLength
()
);
...
...
package/source/zipapi/blowfishcontext.cxx
Dosyayı görüntüle @
363c1ede
...
...
@@ -31,7 +31,7 @@ uno::Reference< xml::crypto::XCipherContext > BlowfishCFB8CipherContext::Create(
::
rtl
::
Reference
<
BlowfishCFB8CipherContext
>
xResult
=
new
BlowfishCFB8CipherContext
();
xResult
->
m_pCipher
=
rtl_cipher_create
(
rtl_Cipher_AlgorithmBF
,
rtl_Cipher_ModeStream
);
if
(
!
xResult
->
m_pCipher
)
throw
uno
::
RuntimeException
(
::
rtl
::
OUString
(
RTL_CONSTASCII_USTRINGPARAM
(
"Can not create cipher!"
))
,
throw
uno
::
RuntimeException
(
"Can not create cipher!"
,
uno
::
Reference
<
XInterface
>
()
);
if
(
rtl_Cipher_E_None
!=
rtl_cipher_init
(
...
...
@@ -42,7 +42,7 @@ uno::Reference< xml::crypto::XCipherContext > BlowfishCFB8CipherContext::Create(
reinterpret_cast
<
const
sal_uInt8
*
>
(
aInitVector
.
getConstArray
()
),
aInitVector
.
getLength
()
)
)
{
throw
uno
::
RuntimeException
(
::
rtl
::
OUString
(
RTL_CONSTASCII_USTRINGPARAM
(
"Can not initialize cipher!"
)
)
,
throw
uno
::
RuntimeException
(
"Can not initialize cipher!"
,
uno
::
Reference
<
XInterface
>
()
);
}
...
...
@@ -89,7 +89,7 @@ uno::Sequence< sal_Int8 > SAL_CALL BlowfishCFB8CipherContext::convertWithCipherC
if
(
rtl_Cipher_E_None
!=
nError
)
{
throw
uno
::
RuntimeException
(
::
rtl
::
OUString
(
RTL_CONSTASCII_USTRINGPARAM
(
"Can not decrypt/encrypt with cipher!"
)
)
,
throw
uno
::
RuntimeException
(
"Can not decrypt/encrypt with cipher!"
,
uno
::
Reference
<
uno
::
XInterface
>
()
);
}
...
...
package/source/zipapi/sha1context.cxx
Dosyayı görüntüle @
363c1ede
...
...
@@ -31,7 +31,7 @@ uno::Reference< xml::crypto::XDigestContext > SHA1DigestContext::Create()
::
rtl
::
Reference
<
SHA1DigestContext
>
xResult
=
new
SHA1DigestContext
();
xResult
->
m_pDigest
=
rtl_digest_createSHA1
();
if
(
!
xResult
->
m_pDigest
)
throw
uno
::
RuntimeException
(
::
rtl
::
OUString
(
RTL_CONSTASCII_USTRINGPARAM
(
"Can not create cipher!"
)
)
,
throw
uno
::
RuntimeException
(
"Can not create cipher!"
,
uno
::
Reference
<
XInterface
>
()
);
return
uno
::
Reference
<
xml
::
crypto
::
XDigestContext
>
(
xResult
.
get
()
);
...
...
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