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
b57f8a94
Kaydet (Commit)
b57f8a94
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: I97e238df6fc71367b4a17a5da48ed527c5b57666
üst
26655d09
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
7 additions
and
7 deletions
+7
-7
AxisItemConverter.cxx
...t2/source/controller/itemsetwrapper/AxisItemConverter.cxx
+1
-1
CharacterPropertyItemConverter.cxx
...troller/itemsetwrapper/CharacterPropertyItemConverter.cxx
+2
-2
ChartTransferable.cxx
chart2/source/controller/main/ChartTransferable.cxx
+1
-1
CommonFunctors.hxx
chart2/source/inc/CommonFunctors.hxx
+3
-3
No files found.
chart2/source/controller/itemsetwrapper/AxisItemConverter.cxx
Dosyayı görüntüle @
b57f8a94
...
...
@@ -288,7 +288,7 @@ void AxisItemConverter::FillSpecialItem( sal_uInt16 nWhichId, SfxItemSet & rOutI
{
OSL_ASSERT
(
rSubIncrements
[
0
].
IntervalCount
.
getValueTypeClass
()
==
uno
::
TypeClass_LONG
);
rOutItemSet
.
Put
(
SfxInt32Item
(
nWhichId
,
*
reinterpret
_cast
<
const
sal_Int32
*
>
(
*
static
_cast
<
const
sal_Int32
*
>
(
rSubIncrements
[
0
].
IntervalCount
.
getValue
())
));
}
else
...
...
chart2/source/controller/itemsetwrapper/CharacterPropertyItemConverter.cxx
Dosyayı görüntüle @
b57f8a94
...
...
@@ -153,7 +153,7 @@ void CharacterPropertyItemConverter::FillSpecialItem(
aValue
=
GetPropertySet
()
->
getPropertyValue
(
"CharUnderlineHasColor"
);
if
(
aValue
.
hasValue
()
&&
(
*
reinterpret
_cast
<
const
sal_Bool
*
>
(
aValue
.
getValue
())
!=
sal_False
))
(
*
static
_cast
<
const
sal_Bool
*
>
(
aValue
.
getValue
())
!=
sal_False
))
{
aItem
.
PutValue
(
aValue
,
MID_TL_HASCOLOR
);
bModified
=
true
;
...
...
@@ -185,7 +185,7 @@ void CharacterPropertyItemConverter::FillSpecialItem(
aValue
=
GetPropertySet
()
->
getPropertyValue
(
"CharOverlineHasColor"
);
if
(
aValue
.
hasValue
()
&&
(
*
reinterpret
_cast
<
const
sal_Bool
*
>
(
aValue
.
getValue
()
)
!=
sal_False
)
)
(
*
static
_cast
<
const
sal_Bool
*
>
(
aValue
.
getValue
()
)
!=
sal_False
)
)
{
aItem
.
PutValue
(
aValue
,
MID_TL_HASCOLOR
);
bModified
=
true
;
...
...
chart2/source/controller/main/ChartTransferable.cxx
Dosyayı görüntüle @
b57f8a94
...
...
@@ -109,7 +109,7 @@ bool ChartTransferable::WriteObject( SotStorageStreamRef& rxOStm, void* pUserObj
{
case
CHARTTRANSFER_OBJECTTYPE_DRAWMODEL
:
{
SdrModel
*
pMarkedObjModel
=
reinterpret
_cast
<
SdrModel
*
>
(
pUserObject
);
SdrModel
*
pMarkedObjModel
=
static
_cast
<
SdrModel
*
>
(
pUserObject
);
if
(
pMarkedObjModel
)
{
rxOStm
->
SetBufferSize
(
0xff00
);
...
...
chart2/source/inc/CommonFunctors.hxx
Dosyayı görüntüle @
b57f8a94
...
...
@@ -62,7 +62,7 @@ struct OOO_DLLPUBLIC_CHARTTOOLS AnyToDouble : public ::std::unary_function< ::co
::
com
::
sun
::
star
::
uno
::
TypeClass
eClass
(
rAny
.
getValueType
().
getTypeClass
()
);
if
(
eClass
==
::
com
::
sun
::
star
::
uno
::
TypeClass_DOUBLE
)
{
fResult
=
*
reinterpret
_cast
<
const
double
*
>
(
rAny
.
getValue
()
);
fResult
=
*
static
_cast
<
const
double
*
>
(
rAny
.
getValue
()
);
}
return
fResult
;
...
...
@@ -79,7 +79,7 @@ struct OOO_DLLPUBLIC_CHARTTOOLS AnyToString : public ::std::unary_function< ::co
::
com
::
sun
::
star
::
uno
::
TypeClass
eClass
(
rAny
.
getValueType
().
getTypeClass
()
);
if
(
eClass
==
::
com
::
sun
::
star
::
uno
::
TypeClass_DOUBLE
)
{
const
double
*
pDouble
=
reinterpret
_cast
<
const
double
*
>
(
rAny
.
getValue
()
);
const
double
*
pDouble
=
static
_cast
<
const
double
*
>
(
rAny
.
getValue
()
);
if
(
::
rtl
::
math
::
isNan
(
*
pDouble
)
)
return
OUString
();
return
::
rtl
::
math
::
doubleToUString
(
...
...
@@ -92,7 +92,7 @@ struct OOO_DLLPUBLIC_CHARTTOOLS AnyToString : public ::std::unary_function< ::co
}
else
if
(
eClass
==
::
com
::
sun
::
star
::
uno
::
TypeClass_STRING
)
{
return
*
reinterpret
_cast
<
const
OUString
*
>
(
rAny
.
getValue
()
);
return
*
static
_cast
<
const
OUString
*
>
(
rAny
.
getValue
()
);
}
return
OUString
();
...
...
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