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
62edaa0f
Kaydet (Commit)
62edaa0f
authored
Ock 17, 2015
tarafından
Stephan Bergmann
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Some more loplugin:cstylecast: javaunohelper
Change-Id: If0728af19ba48896678cc3196c922185e403a885
üst
14c12fac
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
15 deletions
+15
-15
bootstrap.cxx
javaunohelper/source/bootstrap.cxx
+2
-2
javaunohelper.cxx
javaunohelper/source/javaunohelper.cxx
+10
-10
preload.cxx
javaunohelper/source/preload.cxx
+3
-3
No files found.
javaunohelper/source/bootstrap.cxx
Dosyayı görüntüle @
62edaa0f
...
...
@@ -126,8 +126,8 @@ jobject Java_com_sun_star_comp_helper_Bootstrap_cppuhelper_1bootstrap(
OUString
cpp_env_name
=
CPPU_CURRENT_LANGUAGE_BINDING_NAME
;
OUString
java_env_name
=
UNO_LB_JAVA
;
Environment
java_env
,
cpp_env
;
uno_getEnvironment
(
(
uno_Environment
**
)
&
cpp_env
,
cpp_env_name
.
pData
,
NULL
);
uno_getEnvironment
(
(
uno_Environment
**
)
&
java_env
,
java_env_name
.
pData
,
vm_access
.
get
()
);
uno_getEnvironment
(
reinterpret_cast
<
uno_Environment
**>
(
&
cpp_env
)
,
cpp_env_name
.
pData
,
NULL
);
uno_getEnvironment
(
reinterpret_cast
<
uno_Environment
**>
(
&
java_env
)
,
java_env_name
.
pData
,
vm_access
.
get
()
);
// map to java
Mapping
mapping
(
cpp_env
.
get
(),
java_env
.
get
()
);
...
...
javaunohelper/source/javaunohelper.cxx
Dosyayı görüntüle @
62edaa0f
...
...
@@ -79,12 +79,12 @@ jboolean Java_com_sun_star_comp_helper_SharedLibraryLoader_component_1writeInfo(
Environment
java_env
,
loader_env
;
const
sal_Char
*
pEnvTypeName
=
0
;
(
*
((
component_getImplementationEnvironmentFunc
)
pSym
))(
&
pEnvTypeName
,
(
uno_Environment
**
)
&
loader_env
);
(
*
reinterpret_cast
<
component_getImplementationEnvironmentFunc
>
(
pSym
))(
&
pEnvTypeName
,
reinterpret_cast
<
uno_Environment
**>
(
&
loader_env
)
);
if
(
!
loader_env
.
is
())
{
OUString
aEnvTypeName
(
OUString
::
createFromAscii
(
pEnvTypeName
)
);
uno_getEnvironment
(
(
uno_Environment
**
)
&
loader_env
,
aEnvTypeName
.
pData
,
0
);
uno_getEnvironment
(
reinterpret_cast
<
uno_Environment
**>
(
&
loader_env
)
,
aEnvTypeName
.
pData
,
0
);
}
// create vm access
...
...
@@ -92,7 +92,7 @@ jboolean Java_com_sun_star_comp_helper_SharedLibraryLoader_component_1writeInfo(
::
javaunohelper
::
create_vm_access
(
pJEnv
,
loader
)
);
OUString
java_env_name
=
UNO_LB_JAVA
;
uno_getEnvironment
(
(
uno_Environment
**
)
&
java_env
,
java_env_name
.
pData
,
vm_access
.
get
()
);
reinterpret_cast
<
uno_Environment
**>
(
&
java_env
)
,
java_env_name
.
pData
,
vm_access
.
get
()
);
OUString
aWriteInfoName
(
COMPONENT_WRITEINFO
);
pSym
=
lib
.
getFunctionSymbol
(
aWriteInfoName
);
...
...
@@ -114,7 +114,7 @@ jboolean Java_com_sun_star_comp_helper_SharedLibraryLoader_component_1writeInfo(
uno_ExtEnvironment
*
env
=
loader_env
.
get
()
->
pExtEnv
;
if
(
pKey
)
{
bRet
=
(
*
((
component_writeInfoFunc
)
pSym
))(
pSMgr
,
pKey
);
bRet
=
(
*
reinterpret_cast
<
component_writeInfoFunc
>
(
pSym
))(
pSMgr
,
pKey
);
if
(
env
)
(
*
env
->
releaseInterface
)(
env
,
pKey
);
...
...
@@ -171,13 +171,13 @@ jobject Java_com_sun_star_comp_helper_SharedLibraryLoader_component_1getFactory(
Environment
java_env
,
loader_env
;
const
sal_Char
*
pEnvTypeName
=
0
;
(
*
((
component_getImplementationEnvironmentFunc
)
pSym
))(
&
pEnvTypeName
,
(
uno_Environment
**
)
&
loader_env
);
(
*
reinterpret_cast
<
component_getImplementationEnvironmentFunc
>
(
pSym
))(
&
pEnvTypeName
,
reinterpret_cast
<
uno_Environment
**>
(
&
loader_env
)
);
if
(
!
loader_env
.
is
())
{
OUString
aEnvTypeName
(
OUString
::
createFromAscii
(
pEnvTypeName
)
);
uno_getEnvironment
(
(
uno_Environment
**
)
&
loader_env
,
aEnvTypeName
.
pData
,
0
);
uno_getEnvironment
(
reinterpret_cast
<
uno_Environment
**>
(
&
loader_env
)
,
aEnvTypeName
.
pData
,
0
);
}
// create vm access
...
...
@@ -185,7 +185,7 @@ jobject Java_com_sun_star_comp_helper_SharedLibraryLoader_component_1getFactory(
::
javaunohelper
::
create_vm_access
(
pJEnv
,
loader
)
);
OUString
java_env_name
=
UNO_LB_JAVA
;
uno_getEnvironment
(
(
uno_Environment
**
)
&
java_env
,
java_env_name
.
pData
,
vm_access
.
get
()
);
reinterpret_cast
<
uno_Environment
**>
(
&
java_env
)
,
java_env_name
.
pData
,
vm_access
.
get
()
);
OUString
aGetFactoryName
(
COMPONENT_GETFACTORY
);
pSym
=
lib
.
getFunctionSymbol
(
aGetFactoryName
);
...
...
@@ -207,7 +207,7 @@ jobject Java_com_sun_star_comp_helper_SharedLibraryLoader_component_1getFactory(
const
char
*
pImplName
=
pJEnv
->
GetStringUTFChars
(
jImplName
,
NULL
);
void
*
pSSF
=
(
*
((
component_getFactoryFunc
)
pSym
))(
void
*
pSSF
=
(
*
reinterpret_cast
<
component_getFactoryFunc
>
(
pSym
))(
pImplName
,
pSMgr
,
pKey
);
pJEnv
->
ReleaseStringUTFChars
(
jImplName
,
pImplName
);
...
...
javaunohelper/source/preload.cxx
Dosyayı görüntüle @
62edaa0f
...
...
@@ -63,14 +63,14 @@ static bool inited_juhx( JNIEnv * jni_env )
{
OUString
symbol
=
"Java_com_sun_star_comp_helper_SharedLibraryLoader_component_1writeInfo"
;
s_writeInfo
=
(
javaunohelper
::
detail
::
Func_writeInfo
*
)
aModule
.
getFunctionSymbol
(
symbol
);
s_writeInfo
=
reinterpret_cast
<
javaunohelper
::
detail
::
Func_writeInfo
*>
(
aModule
.
getFunctionSymbol
(
symbol
)
);
symbol
=
"Java_com_sun_star_comp_helper_SharedLibraryLoader_component_1getFactory"
;
s_getFactory
=
(
javaunohelper
::
detail
::
Func_getFactory
*
)
aModule
.
getFunctionSymbol
(
symbol
);
s_getFactory
=
reinterpret_cast
<
javaunohelper
::
detail
::
Func_getFactory
*>
(
aModule
.
getFunctionSymbol
(
symbol
)
);
symbol
=
"Java_com_sun_star_comp_helper_Bootstrap_cppuhelper_1bootstrap"
;
s_bootstrap
=
(
javaunohelper
::
detail
::
Func_bootstrap
*
)
aModule
.
getFunctionSymbol
(
symbol
);
reinterpret_cast
<
javaunohelper
::
detail
::
Func_bootstrap
*>
(
aModule
.
getFunctionSymbol
(
symbol
)
);
if
(
0
==
s_writeInfo
||
0
==
s_getFactory
||
...
...
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