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
016b8d71
Kaydet (Commit)
016b8d71
authored
Ock 15, 2018
tarafından
Stephan Bergmann
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
More loplugin:cstylecast: cppu
Change-Id: I728a40ab6ef4aa44fbe328abdf244e6b5fac9d04
üst
2fa1c894
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
7 additions
and
7 deletions
+7
-7
test_cppumaker.cxx
cppu/qa/cppumaker/test_cppumaker.cxx
+3
-3
Any.h
include/com/sun/star/uno/Any.h
+1
-1
Type.h
include/com/sun/star/uno/Type.h
+1
-1
Type.hxx
include/com/sun/star/uno/Type.hxx
+2
-2
No files found.
cppu/qa/cppumaker/test_cppumaker.cxx
Dosyayı görüntüle @
016b8d71
...
...
@@ -430,15 +430,15 @@ void Test::testBigStruct() {
CPPUNIT_ASSERT_EQUAL
(
guard
.
p
->
m10
,
0.0
);
CPPUNIT_ASSERT_EQUAL
(
guard
.
p
->
m11
,
u'\0'
);
CPPUNIT_ASSERT_EQUAL
(
guard
.
p
->
m12
.
getLength
(),
static_cast
<
sal_Int32
>
(
0
));
CPPUNIT_ASSERT_EQUAL
(
(
sal_Int32
)
guard
.
p
->
m13
.
getTypeClass
(),
(
sal_Int32
)
css
::
uno
::
TypeClass_VOID
);
CPPUNIT_ASSERT_EQUAL
(
static_cast
<
sal_Int32
>
(
guard
.
p
->
m13
.
getTypeClass
()),
sal_Int32
(
css
::
uno
::
TypeClass_VOID
)
);
CPPUNIT_ASSERT_EQUAL
(
guard
.
p
->
m14
.
hasValue
(),
false
);
CPPUNIT_ASSERT_EQUAL
(
guard
.
p
->
m15
.
getLength
(),
static_cast
<
sal_Int32
>
(
0
));
CPPUNIT_ASSERT_EQUAL
(
(
int
)
guard
.
p
->
m16
,
(
int
)
test
::
codemaker
::
cppumaker
::
HelperEnum_ZERO
);
CPPUNIT_ASSERT_EQUAL
(
static_cast
<
int
>
(
guard
.
p
->
m16
),
int
(
test
::
codemaker
::
cppumaker
::
HelperEnum_ZERO
)
);
CPPUNIT_ASSERT_EQUAL
(
guard
.
p
->
m17
.
m1
,
sal_False
);
CPPUNIT_ASSERT_EQUAL
(
guard
.
p
->
m17
.
m2
.
is
(),
false
);
CPPUNIT_ASSERT_EQUAL
(
guard
.
p
->
m18
.
is
(),
false
);
CPPUNIT_ASSERT_EQUAL
(
guard
.
p
->
m19
,
static_cast
<
sal_Int8
>
(
0
));
CPPUNIT_ASSERT_EQUAL
(
(
sal_Int32
)
guard
.
p
->
m20
,
(
sal_Int32
)
test
::
codemaker
::
cppumaker
::
HelperEnum_ZERO
);
CPPUNIT_ASSERT_EQUAL
(
static_cast
<
sal_Int32
>
(
guard
.
p
->
m20
),
sal_Int32
(
test
::
codemaker
::
cppumaker
::
HelperEnum_ZERO
)
);
CPPUNIT_ASSERT_EQUAL
(
guard
.
p
->
m21
.
getLength
(),
static_cast
<
sal_Int32
>
(
0
));
CPPUNIT_ASSERT_EQUAL
(
guard
.
p
->
m22
.
getLength
(),
static_cast
<
sal_Int32
>
(
0
));
CPPUNIT_ASSERT_EQUAL
(
guard
.
p
->
m23
.
getLength
(),
static_cast
<
sal_Int32
>
(
0
));
...
...
include/com/sun/star/uno/Any.h
Dosyayı görüntüle @
016b8d71
...
...
@@ -168,7 +168,7 @@ public:
@return the type class of the set value
*/
TypeClass
SAL_CALL
getValueTypeClass
()
const
{
return
(
TypeClass
)
pType
->
eTypeClass
;
}
{
return
static_cast
<
TypeClass
>
(
pType
->
eTypeClass
)
;
}
/** Gets the type name of the set value.
...
...
include/com/sun/star/uno/Type.h
Dosyayı görüntüle @
016b8d71
...
...
@@ -132,7 +132,7 @@ public:
@return type class of set type
*/
TypeClass
SAL_CALL
getTypeClass
()
const
{
return
(
TypeClass
)
_pType
->
eTypeClass
;
}
{
return
static_cast
<
TypeClass
>
(
_pType
->
eTypeClass
)
;
}
/** Gets the name of the set type.
...
...
include/com/sun/star/uno/Type.hxx
Dosyayı görüntüle @
016b8d71
...
...
@@ -47,13 +47,13 @@ inline Type::Type()
inline
Type
::
Type
(
TypeClass
eTypeClass
,
const
::
rtl
::
OUString
&
rTypeName
)
:
_pType
(
NULL
)
{
::
typelib_typedescriptionreference_new
(
&
_pType
,
(
typelib_TypeClass
)
eTypeClass
,
rTypeName
.
pData
);
::
typelib_typedescriptionreference_new
(
&
_pType
,
static_cast
<
typelib_TypeClass
>
(
eTypeClass
)
,
rTypeName
.
pData
);
}
inline
Type
::
Type
(
TypeClass
eTypeClass
,
const
sal_Char
*
pTypeName
)
:
_pType
(
NULL
)
{
::
typelib_typedescriptionreference_newByAsciiName
(
&
_pType
,
(
typelib_TypeClass
)
eTypeClass
,
pTypeName
);
::
typelib_typedescriptionreference_newByAsciiName
(
&
_pType
,
static_cast
<
typelib_TypeClass
>
(
eTypeClass
)
,
pTypeName
);
}
inline
Type
::
Type
(
typelib_TypeDescriptionReference
*
pType
)
...
...
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