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
6812daf2
Kaydet (Commit)
6812daf2
authored
Ock 18, 2015
tarafından
Stephan Bergmann
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Some more loplugin:cstylecast: sdext
Change-Id: Id98eab748280cd9c9c6e34cc3f6938ff6911361a
üst
ebb137bd
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
10 deletions
+10
-10
pdfentries.cxx
sdext/source/pdfimport/pdfparse/pdfentries.cxx
+8
-8
pdfioutdev_gpl.cxx
sdext/source/pdfimport/xpdfwrapper/pdfioutdev_gpl.cxx
+2
-2
No files found.
sdext/source/pdfimport/pdfparse/pdfentries.cxx
Dosyayı görüntüle @
6812daf2
...
@@ -202,8 +202,8 @@ bool PDFString::emit( EmitContext& rWriteContext ) const
...
@@ -202,8 +202,8 @@ bool PDFString::emit( EmitContext& rWriteContext ) const
OString
aFiltered
(
getFilteredString
()
);
OString
aFiltered
(
getFilteredString
()
);
// decrypt inplace (evil since OString is supposed to be const
// decrypt inplace (evil since OString is supposed to be const
// however in this case we know that getFilteredString returned a singular string instance
// however in this case we know that getFilteredString returned a singular string instance
pEData
->
decrypt
(
(
sal_uInt8
*
)
aFiltered
.
getStr
(
),
aFiltered
.
getLength
(),
pEData
->
decrypt
(
reinterpret_cast
<
sal_uInt8
const
*>
(
aFiltered
.
getStr
()
),
aFiltered
.
getLength
(),
(
sal_uInt8
*
)
aFiltered
.
getStr
(
),
reinterpret_cast
<
sal_uInt8
*>
(
const_cast
<
char
*>
(
aFiltered
.
getStr
())
),
pEData
->
m_nDecryptObject
,
pEData
->
m_nDecryptGeneration
);
pEData
->
m_nDecryptObject
,
pEData
->
m_nDecryptGeneration
);
// check for string or hex string
// check for string or hex string
const
sal_Char
*
pStr
=
aFiltered
.
getStr
();
const
sal_Char
*
pStr
=
aFiltered
.
getStr
();
...
@@ -722,11 +722,11 @@ bool PDFObject::getDeflatedStream( char** ppStream, unsigned int* pBytes, const
...
@@ -722,11 +722,11 @@ bool PDFObject::getDeflatedStream( char** ppStream, unsigned int* pBytes, const
return
bIsDeflated
;
return
bIsDeflated
;
}
}
static
void
unzipToBuffer
(
c
onst
c
har
*
pBegin
,
unsigned
int
nLen
,
static
void
unzipToBuffer
(
char
*
pBegin
,
unsigned
int
nLen
,
sal_uInt8
**
pOutBuf
,
sal_uInt32
*
pOutLen
)
sal_uInt8
**
pOutBuf
,
sal_uInt32
*
pOutLen
)
{
{
z_stream
aZStr
;
z_stream
aZStr
;
aZStr
.
next_in
=
(
Bytef
*
)
pBegin
;
aZStr
.
next_in
=
reinterpret_cast
<
Bytef
*>
(
pBegin
)
;
aZStr
.
avail_in
=
nLen
;
aZStr
.
avail_in
=
nLen
;
aZStr
.
zalloc
=
(
alloc_func
)
0
;
aZStr
.
zalloc
=
(
alloc_func
)
0
;
aZStr
.
zfree
=
(
free_func
)
0
;
aZStr
.
zfree
=
(
free_func
)
0
;
...
@@ -825,7 +825,7 @@ bool PDFObject::emit( EmitContext& rWriteContext ) const
...
@@ -825,7 +825,7 @@ bool PDFObject::emit( EmitContext& rWriteContext ) const
else
else
{
{
// nothing to deflate, but decryption has happened
// nothing to deflate, but decryption has happened
pOutBytes
=
(
sal_uInt8
*
)
pStream
;
pOutBytes
=
reinterpret_cast
<
sal_uInt8
*>
(
pStream
)
;
nOutBytes
=
(
sal_uInt32
)
nBytes
;
nOutBytes
=
(
sal_uInt32
)
nBytes
;
}
}
...
@@ -879,14 +879,14 @@ bool PDFObject::emit( EmitContext& rWriteContext ) const
...
@@ -879,14 +879,14 @@ bool PDFObject::emit( EmitContext& rWriteContext ) const
bRet
=
rWriteContext
.
write
(
pOutBytes
,
nOutBytes
);
bRet
=
rWriteContext
.
write
(
pOutBytes
,
nOutBytes
);
if
(
bRet
)
if
(
bRet
)
bRet
=
rWriteContext
.
write
(
"
\n
endstream
\n
endobj
\n
"
,
18
);
bRet
=
rWriteContext
.
write
(
"
\n
endstream
\n
endobj
\n
"
,
18
);
if
(
pOutBytes
!=
(
sal_uInt8
*
)
pStream
)
if
(
pOutBytes
!=
reinterpret_cast
<
sal_uInt8
*>
(
pStream
)
)
rtl_freeMemory
(
pOutBytes
);
rtl_freeMemory
(
pOutBytes
);
rtl_freeMemory
(
pStream
);
rtl_freeMemory
(
pStream
);
if
(
pEData
)
if
(
pEData
)
pEData
->
setDecryptObject
(
0
,
0
);
pEData
->
setDecryptObject
(
0
,
0
);
return
bRet
;
return
bRet
;
}
}
if
(
pOutBytes
!=
(
sal_uInt8
*
)
pStream
)
if
(
pOutBytes
!=
reinterpret_cast
<
sal_uInt8
*>
(
pStream
)
)
rtl_freeMemory
(
pOutBytes
);
rtl_freeMemory
(
pOutBytes
);
}
}
rtl_freeMemory
(
pStream
);
rtl_freeMemory
(
pStream
);
...
@@ -1258,7 +1258,7 @@ bool PDFFile::setupDecryptionData( const OString& rPwd ) const
...
@@ -1258,7 +1258,7 @@ bool PDFFile::setupDecryptionData( const OString& rPwd ) const
nPwd
,
32
);
// decrypt inplace
nPwd
,
32
);
// decrypt inplace
}
}
}
}
bValid
=
check_user_password
(
OString
(
(
sal_Char
*
)
nPwd
,
32
),
m_pData
);
bValid
=
check_user_password
(
OString
(
reinterpret_cast
<
char
*>
(
nPwd
)
,
32
),
m_pData
);
}
}
return
bValid
;
return
bValid
;
...
...
sdext/source/pdfimport/xpdfwrapper/pdfioutdev_gpl.cxx
Dosyayı görüntüle @
6812daf2
...
@@ -942,12 +942,12 @@ void PDFOutDev::drawImage(GfxState*, Object*, Stream* str,
...
@@ -942,12 +942,12 @@ void PDFOutDev::drawImage(GfxState*, Object*, Stream* str,
{
{
GfxRGB
aMinRGB
;
GfxRGB
aMinRGB
;
colorMap
->
getColorSpace
()
->
getRGB
(
colorMap
->
getColorSpace
()
->
getRGB
(
(
GfxColor
*
)
maskColors
,
reinterpret_cast
<
GfxColor
*>
(
maskColors
)
,
&
aMinRGB
);
&
aMinRGB
);
GfxRGB
aMaxRGB
;
GfxRGB
aMaxRGB
;
colorMap
->
getColorSpace
()
->
getRGB
(
colorMap
->
getColorSpace
()
->
getRGB
(
(
GfxColor
*
)
maskColors
+
gfxColorMaxComps
,
reinterpret_cast
<
GfxColor
*>
(
maskColors
)
+
gfxColorMaxComps
,
&
aMaxRGB
);
&
aMaxRGB
);
aMaskBuf
.
push_back
(
colToByte
(
aMinRGB
.
r
)
);
aMaskBuf
.
push_back
(
colToByte
(
aMinRGB
.
r
)
);
...
...
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