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
8b2779bf
Kaydet (Commit)
8b2779bf
authored
Mar 28, 2015
tarafından
Stephan Bergmann
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Clean up C-style casts from pointers to void
Change-Id: Ia1facd79ccfa142412c833bded0d65b50e71d961
üst
7eeabbca
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
8 deletions
+8
-8
smmod.hxx
starmath/inc/smmod.hxx
+1
-1
smdll.cxx
starmath/source/smdll.cxx
+1
-1
unomodel.cxx
starmath/source/unomodel.cxx
+6
-6
No files found.
starmath/inc/smmod.hxx
Dosyayı görüntüle @
8b2779bf
...
@@ -140,7 +140,7 @@ public:
...
@@ -140,7 +140,7 @@ public:
virtual
SfxTabPage
*
CreateTabPage
(
sal_uInt16
nId
,
vcl
::
Window
*
pParent
,
const
SfxItemSet
&
rSet
)
SAL_OVERRIDE
;
virtual
SfxTabPage
*
CreateTabPage
(
sal_uInt16
nId
,
vcl
::
Window
*
pParent
,
const
SfxItemSet
&
rSet
)
SAL_OVERRIDE
;
};
};
#define SM_MOD() ( *
(SmModule**) GetAppData(SHL_SM
) )
#define SM_MOD() ( *
reinterpret_cast<SmModule**>(GetAppData(SHL_SM)
) )
#endif // INCLUDED_STARMATH_INC_SMMOD_HXX
#endif // INCLUDED_STARMATH_INC_SMMOD_HXX
...
...
starmath/source/smdll.cxx
Dosyayı görüntüle @
8b2779bf
...
@@ -51,7 +51,7 @@ namespace
...
@@ -51,7 +51,7 @@ namespace
SmDLL
::
SmDLL
()
SmDLL
::
SmDLL
()
{
{
SmModule
**
ppShlPtr
=
(
SmModule
**
)
GetAppData
(
SHL_SM
);
SmModule
**
ppShlPtr
=
reinterpret_cast
<
SmModule
**>
(
GetAppData
(
SHL_SM
)
);
if
(
*
ppShlPtr
)
if
(
*
ppShlPtr
)
return
;
return
;
...
...
starmath/source/unomodel.cxx
Dosyayı görüntüle @
8b2779bf
...
@@ -392,9 +392,9 @@ static sal_Int16 lcl_AnyToINT16(const uno::Any& rAny)
...
@@ -392,9 +392,9 @@ static sal_Int16 lcl_AnyToINT16(const uno::Any& rAny)
sal_Int16
nRet
=
0
;
sal_Int16
nRet
=
0
;
if
(
eType
==
uno
::
TypeClass_DOUBLE
)
if
(
eType
==
uno
::
TypeClass_DOUBLE
)
nRet
=
(
sal_Int16
)
*
(
double
*
)
rAny
.
getValue
(
);
nRet
=
(
sal_Int16
)
*
static_cast
<
double
const
*>
(
rAny
.
getValue
()
);
else
if
(
eType
==
uno
::
TypeClass_FLOAT
)
else
if
(
eType
==
uno
::
TypeClass_FLOAT
)
nRet
=
(
sal_Int16
)
*
(
float
*
)
rAny
.
getValue
(
);
nRet
=
(
sal_Int16
)
*
static_cast
<
float
const
*>
(
rAny
.
getValue
()
);
else
else
rAny
>>=
nRet
;
rAny
>>=
nRet
;
return
nRet
;
return
nRet
;
...
@@ -478,7 +478,7 @@ void SmModel::_setPropertyValues(const PropertyMapEntry** ppEntries, const Any*
...
@@ -478,7 +478,7 @@ void SmModel::_setPropertyValues(const PropertyMapEntry** ppEntries, const Any*
{
{
if
((
*
pValues
).
getValueType
()
!=
::
getBooleanCppuType
())
if
((
*
pValues
).
getValueType
()
!=
::
getBooleanCppuType
())
throw
IllegalArgumentException
();
throw
IllegalArgumentException
();
bool
bVal
=
*
(
sal_Bool
*
)(
*
pValues
).
getValue
(
);
bool
bVal
=
*
static_cast
<
sal_Bool
const
*>
((
*
pValues
).
getValue
()
);
vcl
::
Font
aNewFont
(
aFormat
.
GetFont
((
*
ppEntries
)
->
mnMemberId
));
vcl
::
Font
aNewFont
(
aFormat
.
GetFont
((
*
ppEntries
)
->
mnMemberId
));
aNewFont
.
SetItalic
((
bVal
)
?
ITALIC_NORMAL
:
ITALIC_NONE
);
aNewFont
.
SetItalic
((
bVal
)
?
ITALIC_NORMAL
:
ITALIC_NONE
);
aFormat
.
SetFont
((
*
ppEntries
)
->
mnMemberId
,
aNewFont
);
aFormat
.
SetFont
((
*
ppEntries
)
->
mnMemberId
,
aNewFont
);
...
@@ -494,7 +494,7 @@ void SmModel::_setPropertyValues(const PropertyMapEntry** ppEntries, const Any*
...
@@ -494,7 +494,7 @@ void SmModel::_setPropertyValues(const PropertyMapEntry** ppEntries, const Any*
{
{
if
((
*
pValues
).
getValueType
()
!=
::
getBooleanCppuType
())
if
((
*
pValues
).
getValueType
()
!=
::
getBooleanCppuType
())
throw
IllegalArgumentException
();
throw
IllegalArgumentException
();
bool
bVal
=
*
(
sal_Bool
*
)(
*
pValues
).
getValue
(
);
bool
bVal
=
*
static_cast
<
sal_Bool
const
*>
((
*
pValues
).
getValue
()
);
vcl
::
Font
aNewFont
(
aFormat
.
GetFont
((
*
ppEntries
)
->
mnMemberId
));
vcl
::
Font
aNewFont
(
aFormat
.
GetFont
((
*
ppEntries
)
->
mnMemberId
));
aNewFont
.
SetWeight
((
bVal
)
?
WEIGHT_BOLD
:
WEIGHT_NORMAL
);
aNewFont
.
SetWeight
((
bVal
)
?
WEIGHT_BOLD
:
WEIGHT_NORMAL
);
aFormat
.
SetFont
((
*
ppEntries
)
->
mnMemberId
,
aNewFont
);
aFormat
.
SetFont
((
*
ppEntries
)
->
mnMemberId
,
aNewFont
);
...
@@ -534,7 +534,7 @@ void SmModel::_setPropertyValues(const PropertyMapEntry** ppEntries, const Any*
...
@@ -534,7 +534,7 @@ void SmModel::_setPropertyValues(const PropertyMapEntry** ppEntries, const Any*
case
HANDLE_IS_TEXT_MODE
:
case
HANDLE_IS_TEXT_MODE
:
{
{
aFormat
.
SetTextmode
(
*
(
sal_Bool
*
)(
*
pValues
).
getValue
(
));
aFormat
.
SetTextmode
(
*
static_cast
<
sal_Bool
const
*>
((
*
pValues
).
getValue
()
));
}
}
break
;
break
;
...
@@ -592,7 +592,7 @@ void SmModel::_setPropertyValues(const PropertyMapEntry** ppEntries, const Any*
...
@@ -592,7 +592,7 @@ void SmModel::_setPropertyValues(const PropertyMapEntry** ppEntries, const Any*
}
}
break
;
break
;
case
HANDLE_IS_SCALE_ALL_BRACKETS
:
case
HANDLE_IS_SCALE_ALL_BRACKETS
:
aFormat
.
SetScaleNormalBrackets
(
*
(
sal_Bool
*
)(
*
pValues
).
getValue
(
));
aFormat
.
SetScaleNormalBrackets
(
*
static_cast
<
sal_Bool
const
*>
((
*
pValues
).
getValue
()
));
break
;
break
;
case
HANDLE_PRINTER_NAME
:
case
HANDLE_PRINTER_NAME
:
{
{
...
...
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