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
88d7938a
Kaydet (Commit)
88d7938a
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: Ieb830d8216badd75899666f4db565a83e37d11fc
üst
43c74591
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
bootstrap.cxx
javaunohelper/source/bootstrap.cxx
+2
-2
javaunohelper.cxx
javaunohelper/source/javaunohelper.cxx
+2
-2
No files found.
javaunohelper/source/bootstrap.cxx
Dosyayı görüntüle @
88d7938a
...
...
@@ -52,7 +52,7 @@ inline OUString jstring_to_oustring( jstring jstr, JNIEnv * jni_env )
OSL_ASSERT
(
sizeof
(
sal_Unicode
)
==
sizeof
(
jchar
)
);
jsize
len
=
jni_env
->
GetStringLength
(
jstr
);
rtl_uString
*
ustr
=
(
rtl_uString
*
)
rtl_allocateMemory
(
sizeof
(
rtl_uString
)
+
(
len
*
sizeof
(
sal_Unicode
))
);
static_cast
<
rtl_uString
*>
(
rtl_allocateMemory
(
sizeof
(
rtl_uString
)
+
(
len
*
sizeof
(
sal_Unicode
))
)
);
jni_env
->
GetStringRegion
(
jstr
,
0
,
len
,
ustr
->
buffer
);
OSL_ASSERT
(
JNI_FALSE
==
jni_env
->
ExceptionCheck
()
);
ustr
->
refCount
=
1
;
...
...
@@ -139,7 +139,7 @@ jobject Java_com_sun_star_comp_helper_Bootstrap_cppuhelper_1bootstrap(
throw
RuntimeException
(
"cannot get mapping C++ <-> Java!"
);
}
jobject
jret
=
(
jobject
)
mapping
.
mapInterface
(
xContext
.
get
(),
::
getCppuType
(
&
xContext
)
);
jobject
jret
=
static_cast
<
jobject
>
(
mapping
.
mapInterface
(
xContext
.
get
(),
::
getCppuType
(
&
xContext
)
)
);
jobject
jlocal
=
jni_env
->
NewLocalRef
(
jret
);
jni_env
->
DeleteGlobalRef
(
jret
);
...
...
javaunohelper/source/javaunohelper.cxx
Dosyayı görüntüle @
88d7938a
...
...
@@ -221,8 +221,8 @@ jobject Java_com_sun_star_comp_helper_SharedLibraryLoader_component_1getFactory(
if
(
pSSF
)
{
jobject
jglobal
=
(
jobject
)
dest2java
.
mapInterface
(
pSSF
,
cppu
::
UnoType
<
XInterface
>::
get
());
jobject
jglobal
=
static_cast
<
jobject
>
(
dest2java
.
mapInterface
(
pSSF
,
cppu
::
UnoType
<
XInterface
>::
get
())
)
;
joSLL_cpp
=
pJEnv
->
NewLocalRef
(
jglobal
);
pJEnv
->
DeleteGlobalRef
(
jglobal
);
if
(
env
)
...
...
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