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
58be5b0a
Kaydet (Commit)
58be5b0a
authored
Mar 31, 2015
tarafından
Stephan Bergmann
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Reduce to static_cast any reinterpret_cast from void pointers
Change-Id: I440205a15ab8edc7f7ec630cb7c1b93e7be6b396
üst
693002e1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
3 deletions
+3
-3
binaryinputstream.cxx
oox/source/helper/binaryinputstream.cxx
+1
-1
binaryoutputstream.cxx
oox/source/helper/binaryoutputstream.cxx
+1
-1
vbainputstream.cxx
oox/source/ole/vbainputstream.cxx
+1
-1
No files found.
oox/source/helper/binaryinputstream.cxx
Dosyayı görüntüle @
58be5b0a
...
...
@@ -174,7 +174,7 @@ sal_Int32 BinaryXInputStream::readMemory( void* opMem, sal_Int32 nBytes, size_t
if
(
!
mbEof
&&
(
nBytes
>
0
)
)
{
sal_Int32
nBufferSize
=
getLimitedValue
<
sal_Int32
,
sal_Int32
>
(
nBytes
,
0
,
INPUTSTREAM_BUFFERSIZE
);
sal_uInt8
*
opnMem
=
reinterpret
_cast
<
sal_uInt8
*
>
(
opMem
);
sal_uInt8
*
opnMem
=
static
_cast
<
sal_uInt8
*
>
(
opMem
);
while
(
!
mbEof
&&
(
nBytes
>
0
)
)
{
sal_Int32
nReadSize
=
getLimitedValue
<
sal_Int32
,
sal_Int32
>
(
nBytes
,
0
,
nBufferSize
);
...
...
oox/source/helper/binaryoutputstream.cxx
Dosyayı görüntüle @
58be5b0a
...
...
@@ -85,7 +85,7 @@ void BinaryXOutputStream::writeMemory( const void* pMem, sal_Int32 nBytes, size_
if
(
mxOutStrm
.
is
()
&&
(
nBytes
>
0
)
)
{
sal_Int32
nBufferSize
=
getLimitedValue
<
sal_Int32
,
sal_Int32
>
(
nBytes
,
0
,
(
OUTPUTSTREAM_BUFFERSIZE
/
nAtomSize
)
*
nAtomSize
);
const
sal_uInt8
*
pnMem
=
reinterpret
_cast
<
const
sal_uInt8
*
>
(
pMem
);
const
sal_uInt8
*
pnMem
=
static
_cast
<
const
sal_uInt8
*
>
(
pMem
);
while
(
nBytes
>
0
)
{
sal_Int32
nWriteSize
=
getLimitedValue
<
sal_Int32
,
sal_Int32
>
(
nBytes
,
0
,
nBufferSize
);
...
...
oox/source/ole/vbainputstream.cxx
Dosyayı görüntüle @
58be5b0a
...
...
@@ -85,7 +85,7 @@ sal_Int32 VbaInputStream::readData( StreamDataSequence& orData, sal_Int32 nBytes
sal_Int32
VbaInputStream
::
readMemory
(
void
*
opMem
,
sal_Int32
nBytes
,
size_t
/*nAtomSize*/
)
{
sal_Int32
nRet
=
0
;
sal_uInt8
*
opnMem
=
reinterpret
_cast
<
sal_uInt8
*
>
(
opMem
);
sal_uInt8
*
opnMem
=
static
_cast
<
sal_uInt8
*
>
(
opMem
);
while
(
(
nBytes
>
0
)
&&
updateChunk
()
)
{
sal_Int32
nChunkLeft
=
static_cast
<
sal_Int32
>
(
maChunk
.
size
()
-
mnChunkPos
);
...
...
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