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
6257ea7d
Kaydet (Commit)
6257ea7d
authored
Agu 21, 2015
tarafından
Matteo Casalin
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
sal_uLong to size_t
Change-Id: Ie1774045329f543c05316ba2acfa332e3b323c7c
üst
adc5e7d5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
salbtype.hxx
include/vcl/salbtype.hxx
+5
-5
No files found.
include/vcl/salbtype.hxx
Dosyayı görüntüle @
6257ea7d
...
@@ -419,7 +419,7 @@ inline BitmapPalette::BitmapPalette( const BitmapPalette& rBitmapPalette ) :
...
@@ -419,7 +419,7 @@ inline BitmapPalette::BitmapPalette( const BitmapPalette& rBitmapPalette ) :
{
{
if
(
mnCount
)
if
(
mnCount
)
{
{
const
s
al_uLong
nSize
=
mnCount
*
sizeof
(
BitmapColor
);
const
s
ize_t
nSize
=
mnCount
*
sizeof
(
BitmapColor
);
mpBitmapColor
=
reinterpret_cast
<
BitmapColor
*>
(
new
sal_uInt8
[
nSize
]);
mpBitmapColor
=
reinterpret_cast
<
BitmapColor
*>
(
new
sal_uInt8
[
nSize
]);
memcpy
(
mpBitmapColor
,
rBitmapPalette
.
mpBitmapColor
,
nSize
);
memcpy
(
mpBitmapColor
,
rBitmapPalette
.
mpBitmapColor
,
nSize
);
}
}
...
@@ -432,7 +432,7 @@ inline BitmapPalette::BitmapPalette( sal_uInt16 nCount ) :
...
@@ -432,7 +432,7 @@ inline BitmapPalette::BitmapPalette( sal_uInt16 nCount ) :
{
{
if
(
mnCount
)
if
(
mnCount
)
{
{
const
s
al_uLong
nSize
=
mnCount
*
sizeof
(
BitmapColor
);
const
s
ize_t
nSize
=
mnCount
*
sizeof
(
BitmapColor
);
mpBitmapColor
=
reinterpret_cast
<
BitmapColor
*>
(
new
sal_uInt8
[
nSize
]);
mpBitmapColor
=
reinterpret_cast
<
BitmapColor
*>
(
new
sal_uInt8
[
nSize
]);
memset
(
mpBitmapColor
,
0
,
nSize
);
memset
(
mpBitmapColor
,
0
,
nSize
);
}
}
...
@@ -452,7 +452,7 @@ inline BitmapPalette& BitmapPalette::operator=( const BitmapPalette& rBitmapPale
...
@@ -452,7 +452,7 @@ inline BitmapPalette& BitmapPalette::operator=( const BitmapPalette& rBitmapPale
if
(
mnCount
)
if
(
mnCount
)
{
{
const
s
al_uLong
nSize
=
mnCount
*
sizeof
(
BitmapColor
);
const
s
ize_t
nSize
=
mnCount
*
sizeof
(
BitmapColor
);
mpBitmapColor
=
reinterpret_cast
<
BitmapColor
*>
(
new
sal_uInt8
[
nSize
]);
mpBitmapColor
=
reinterpret_cast
<
BitmapColor
*>
(
new
sal_uInt8
[
nSize
]);
memcpy
(
mpBitmapColor
,
rBitmapPalette
.
mpBitmapColor
,
nSize
);
memcpy
(
mpBitmapColor
,
rBitmapPalette
.
mpBitmapColor
,
nSize
);
}
}
...
@@ -508,8 +508,8 @@ inline void BitmapPalette::SetEntryCount( sal_uInt16 nCount )
...
@@ -508,8 +508,8 @@ inline void BitmapPalette::SetEntryCount( sal_uInt16 nCount )
}
}
else
if
(
nCount
!=
mnCount
)
else
if
(
nCount
!=
mnCount
)
{
{
const
s
al_uLong
nNewSize
=
nCount
*
sizeof
(
BitmapColor
);
const
s
ize_t
nNewSize
=
nCount
*
sizeof
(
BitmapColor
);
const
s
al_uLong
nMinSize
=
std
::
min
(
mnCount
,
nCount
)
*
sizeof
(
BitmapColor
);
const
s
ize_t
nMinSize
=
std
::
min
(
mnCount
,
nCount
)
*
sizeof
(
BitmapColor
);
sal_uInt8
*
pNewColor
=
new
sal_uInt8
[
nNewSize
];
sal_uInt8
*
pNewColor
=
new
sal_uInt8
[
nNewSize
];
if
(
nMinSize
&&
mpBitmapColor
)
if
(
nMinSize
&&
mpBitmapColor
)
...
...
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