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
26655d09
Kaydet (Commit)
26655d09
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: I19b86fba87df57c4c65c658d051b664c527214eb
üst
14a4390b
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
23 additions
and
23 deletions
+23
-23
abi.cxx
bridges/source/cpp_uno/gcc3_linux_x86-64/abi.cxx
+1
-1
callvirtualmethod.cxx
...es/source/cpp_uno/gcc3_linux_x86-64/callvirtualmethod.cxx
+5
-5
cpp2uno.cxx
bridges/source/cpp_uno/gcc3_linux_x86-64/cpp2uno.cxx
+2
-2
uno2cpp.cxx
bridges/source/cpp_uno/gcc3_linux_x86-64/uno2cpp.cxx
+2
-2
bridge.cxx
bridges/source/cpp_uno/shared/bridge.cxx
+2
-2
component.cxx
bridges/source/cpp_uno/shared/component.cxx
+3
-3
unointerfaceproxy.cxx
bridges/source/cpp_uno/shared/unointerfaceproxy.cxx
+1
-1
jni_java2uno.cxx
bridges/source/jni_uno/jni_java2uno.cxx
+2
-2
jni_uno2java.cxx
bridges/source/jni_uno/jni_uno2java.cxx
+5
-5
No files found.
bridges/source/cpp_uno/gcc3_linux_x86-64/abi.cxx
Dosyayı görüntüle @
26655d09
...
...
@@ -306,7 +306,7 @@ void x86_64::fill_struct( typelib_TypeDescriptionReference *pTypeRef, const sal_
n
=
classify_argument
(
pTypeRef
,
classes
,
0
);
sal_uInt64
*
pStructAlign
=
reinterpret
_cast
<
sal_uInt64
*>
(
pStruct
);
sal_uInt64
*
pStructAlign
=
static
_cast
<
sal_uInt64
*>
(
pStruct
);
for
(
n
--
;
n
>=
0
;
n
--
)
switch
(
classes
[
n
]
)
{
...
...
bridges/source/cpp_uno/gcc3_linux_x86-64/callvirtualmethod.cxx
Dosyayı görüntüle @
26655d09
...
...
@@ -125,25 +125,25 @@ void CPPU_CURRENT_NAMESPACE::callVirtualMethod(
{
case
typelib_TypeClass_HYPER
:
case
typelib_TypeClass_UNSIGNED_HYPER
:
*
reinterpret
_cast
<
sal_uInt64
*>
(
pRegisterReturn
)
=
data
.
rax
;
*
static
_cast
<
sal_uInt64
*>
(
pRegisterReturn
)
=
data
.
rax
;
break
;
case
typelib_TypeClass_LONG
:
case
typelib_TypeClass_UNSIGNED_LONG
:
case
typelib_TypeClass_ENUM
:
*
reinterpret
_cast
<
sal_uInt32
*>
(
pRegisterReturn
)
=
*
reinterpret_cast
<
sal_uInt32
*>
(
&
data
.
rax
);
*
static
_cast
<
sal_uInt32
*>
(
pRegisterReturn
)
=
*
reinterpret_cast
<
sal_uInt32
*>
(
&
data
.
rax
);
break
;
case
typelib_TypeClass_CHAR
:
case
typelib_TypeClass_SHORT
:
case
typelib_TypeClass_UNSIGNED_SHORT
:
*
reinterpret
_cast
<
sal_uInt16
*>
(
pRegisterReturn
)
=
*
reinterpret_cast
<
sal_uInt16
*>
(
&
data
.
rax
);
*
static
_cast
<
sal_uInt16
*>
(
pRegisterReturn
)
=
*
reinterpret_cast
<
sal_uInt16
*>
(
&
data
.
rax
);
break
;
case
typelib_TypeClass_BOOLEAN
:
case
typelib_TypeClass_BYTE
:
*
reinterpret
_cast
<
sal_uInt8
*>
(
pRegisterReturn
)
=
*
reinterpret_cast
<
sal_uInt8
*>
(
&
data
.
rax
);
*
static
_cast
<
sal_uInt8
*>
(
pRegisterReturn
)
=
*
reinterpret_cast
<
sal_uInt8
*>
(
&
data
.
rax
);
break
;
case
typelib_TypeClass_FLOAT
:
case
typelib_TypeClass_DOUBLE
:
*
reinterpret
_cast
<
double
*>
(
pRegisterReturn
)
=
data
.
xmm0
;
*
static
_cast
<
double
*>
(
pRegisterReturn
)
=
data
.
xmm0
;
break
;
default
:
{
...
...
bridges/source/cpp_uno/gcc3_linux_x86-64/cpp2uno.cxx
Dosyayı görüntüle @
26655d09
...
...
@@ -339,7 +339,7 @@ typelib_TypeClass cpp_vtable_call(
case
0
:
// queryInterface() opt
{
typelib_TypeDescription
*
pTD
=
0
;
TYPELIB_DANGER_GET
(
&
pTD
,
reinterpret
_cast
<
Type
*>
(
gpreg
[
2
]
)
->
getTypeLibType
()
);
TYPELIB_DANGER_GET
(
&
pTD
,
static
_cast
<
Type
*>
(
gpreg
[
2
]
)
->
getTypeLibType
()
);
if
(
pTD
)
{
XInterface
*
pInterface
=
0
;
...
...
@@ -351,7 +351,7 @@ typelib_TypeClass cpp_vtable_call(
if
(
pInterface
)
{
::
uno_any_construct
(
reinterpret
_cast
<
uno_Any
*>
(
gpreg
[
0
]
),
::
uno_any_construct
(
static
_cast
<
uno_Any
*>
(
gpreg
[
0
]
),
&
pInterface
,
pTD
,
cpp_acquire
);
pInterface
->
release
();
...
...
bridges/source/cpp_uno/gcc3_linux_x86-64/uno2cpp.cxx
Dosyayı görüntüle @
26655d09
...
...
@@ -412,7 +412,7 @@ void unoInterfaceProxyDispatch(
case
0
:
// queryInterface() opt
{
typelib_TypeDescription
*
pTD
=
0
;
TYPELIB_DANGER_GET
(
&
pTD
,
reinterpret
_cast
<
Type
*
>
(
pArgs
[
0
]
)
->
getTypeLibType
()
);
TYPELIB_DANGER_GET
(
&
pTD
,
static
_cast
<
Type
*
>
(
pArgs
[
0
]
)
->
getTypeLibType
()
);
if
(
pTD
)
{
uno_Interface
*
pInterface
=
0
;
...
...
@@ -423,7 +423,7 @@ void unoInterfaceProxyDispatch(
if
(
pInterface
)
{
::
uno_any_construct
(
reinterpret
_cast
<
uno_Any
*
>
(
pReturn
),
static
_cast
<
uno_Any
*
>
(
pReturn
),
&
pInterface
,
pTD
,
0
);
(
*
pInterface
->
release
)(
pInterface
);
TYPELIB_DANGER_RELEASE
(
pTD
);
...
...
bridges/source/cpp_uno/shared/bridge.cxx
Dosyayı görüntüle @
26655d09
...
...
@@ -56,8 +56,8 @@ void cpp2unoMapping(
assert
(
ppUnoI
&&
pTypeDescr
);
if
(
*
ppUnoI
)
{
(
*
reinterpret
_cast
<
uno_Interface
*
>
(
*
ppUnoI
)
->
release
)(
reinterpret
_cast
<
uno_Interface
*
>
(
*
ppUnoI
)
);
(
*
static
_cast
<
uno_Interface
*
>
(
*
ppUnoI
)
->
release
)(
static
_cast
<
uno_Interface
*
>
(
*
ppUnoI
)
);
*
ppUnoI
=
0
;
}
if
(
pCppI
)
...
...
bridges/source/cpp_uno/shared/component.cxx
Dosyayı görüntüle @
26655d09
...
...
@@ -100,7 +100,7 @@ static void s_stub_computeObjectIdentifier(va_list * pParam)
{
::
com
::
sun
::
star
::
uno
::
Reference
<
::
com
::
sun
::
star
::
uno
::
XInterface
>
xHome
(
reinterpret
_cast
<
::
com
::
sun
::
star
::
uno
::
XInterface
*
>
(
static
_cast
<
::
com
::
sun
::
star
::
uno
::
XInterface
*
>
(
pInterface
),
::
com
::
sun
::
star
::
uno
::
UNO_QUERY
);
assert
(
xHome
.
is
()
&&
"### query to XInterface failed!"
);
...
...
@@ -142,7 +142,7 @@ static void s_stub_acquireInterface(va_list * pParam)
/*uno_ExtEnvironment * pExtEnv = */
va_arg
(
*
pParam
,
uno_ExtEnvironment
*
);
void
*
pCppI
=
va_arg
(
*
pParam
,
void
*
);
reinterpret
_cast
<
::
com
::
sun
::
star
::
uno
::
XInterface
*
>
(
pCppI
)
->
acquire
();
static
_cast
<
::
com
::
sun
::
star
::
uno
::
XInterface
*
>
(
pCppI
)
->
acquire
();
}
static
void
SAL_CALL
acquireInterface
(
uno_ExtEnvironment
*
pExtEnv
,
void
*
pCppI
)
...
...
@@ -155,7 +155,7 @@ static void s_stub_releaseInterface(va_list * pParam)
/*uno_ExtEnvironment * pExtEnv = */
va_arg
(
*
pParam
,
uno_ExtEnvironment
*
);
void
*
pCppI
=
va_arg
(
*
pParam
,
void
*
);
reinterpret
_cast
<
::
com
::
sun
::
star
::
uno
::
XInterface
*
>
(
pCppI
)
->
release
();
static
_cast
<
::
com
::
sun
::
star
::
uno
::
XInterface
*
>
(
pCppI
)
->
release
();
}
static
void
SAL_CALL
releaseInterface
(
uno_ExtEnvironment
*
pExtEnv
,
void
*
pCppI
)
...
...
bridges/source/cpp_uno/shared/unointerfaceproxy.cxx
Dosyayı görüntüle @
26655d09
...
...
@@ -32,7 +32,7 @@ void freeUnoInterfaceProxy(uno_ExtEnvironment * pEnv, void * pProxy)
{
UnoInterfaceProxy
*
pThis
=
static_cast
<
UnoInterfaceProxy
*
>
(
reinterpret
_cast
<
uno_Interface
*
>
(
pProxy
)
);
static
_cast
<
uno_Interface
*
>
(
pProxy
)
);
if
(
pEnv
!=
pThis
->
pBridge
->
getUnoEnv
())
{
assert
(
false
);
}
...
...
bridges/source/jni_uno/jni_java2uno.cxx
Dosyayı görüntüle @
26655d09
...
...
@@ -94,14 +94,14 @@ void Bridge::handle_uno_exc( JNI_context const & jni, uno_Any * uno_exc ) const
{
#if OSL_DEBUG_LEVEL > 0
// append java stack trace to Message member
reinterpret
_cast
<
::
com
::
sun
::
star
::
uno
::
Exception
*
>
(
static
_cast
<
::
com
::
sun
::
star
::
uno
::
Exception
*
>
(
uno_exc
->
pData
)
->
Message
+=
jni
.
get_stack_trace
();
#endif
SAL_INFO
(
"bridges"
,
"exception occurred java->uno: ["
<<
OUString
::
unacquired
(
&
uno_exc
->
pType
->
pTypeName
)
<<
"] "
<<
reinterpret
_cast
<
css
::
uno
::
Exception
const
*>
(
<<
static
_cast
<
css
::
uno
::
Exception
const
*>
(
uno_exc
->
pData
)
->
Message
);
// signal exception
jvalue
java_exc
;
...
...
bridges/source/jni_uno/jni_uno2java.cxx
Dosyayı görüntüle @
26655d09
...
...
@@ -114,7 +114,7 @@ void Bridge::handle_java_exc(
SAL_INFO
(
"bridges"
,
"exception occurred uno->java: ["
<<
exc_name
<<
"] "
<<
(
reinterpret
_cast
<
css
::
uno
::
Exception
const
*>
(
uno_exc
->
pData
)
<<
(
static
_cast
<
css
::
uno
::
Exception
const
*>
(
uno_exc
->
pData
)
->
Message
));
}
...
...
@@ -520,7 +520,7 @@ extern "C"
void
SAL_CALL
UNO_proxy_free
(
uno_ExtEnvironment
*
env
,
void
*
proxy
)
SAL_THROW_EXTERN_C
()
{
UNO_proxy
*
that
=
reinterpret
_cast
<
UNO_proxy
*
>
(
proxy
);
UNO_proxy
*
that
=
static
_cast
<
UNO_proxy
*
>
(
proxy
);
Bridge
const
*
bridge
=
that
->
m_bridge
;
assert
(
env
==
bridge
->
m_uno_env
);
(
void
)
env
;
...
...
@@ -655,7 +655,7 @@ void SAL_CALL UNO_proxy_dispatch(
case
0
:
// queryInterface()
{
TypeDescr
demanded_td
(
*
reinterpret
_cast
<
typelib_TypeDescriptionReference
**
>
(
*
static
_cast
<
typelib_TypeDescriptionReference
**
>
(
uno_args
[
0
]
)
);
if
(
typelib_TypeClass_INTERFACE
!=
demanded_td
.
get
()
->
eTypeClass
)
...
...
@@ -733,7 +733,7 @@ void SAL_CALL UNO_proxy_dispatch(
else
// object does not support demanded interface
{
uno_any_construct
(
reinterpret
_cast
<
uno_Any
*
>
(
uno_ret
),
static
_cast
<
uno_Any
*
>
(
uno_ret
),
0
,
0
,
0
);
}
// no exception occurred
...
...
@@ -743,7 +743,7 @@ void SAL_CALL UNO_proxy_dispatch(
else
{
uno_any_construct
(
reinterpret
_cast
<
uno_Any
*
>
(
uno_ret
),
static
_cast
<
uno_Any
*
>
(
uno_ret
),
&
pInterface
,
demanded_td
.
get
(),
0
);
(
*
pInterface
->
release
)(
pInterface
);
*
uno_exc
=
0
;
...
...
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