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
1d36d91d
Kaydet (Commit)
1d36d91d
authored
Tem 23, 2014
tarafından
Michael Stahl
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
use BOOST_STATIC_ASSERT for sizeof check
Change-Id: Iad00aa47ef65fe163eff407549c26eb3590ab132
üst
23c5a536
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
3 deletions
+7
-3
Library_javaloader.mk
stoc/Library_javaloader.mk
+2
-0
javaloader.cxx
stoc/source/javaloader/javaloader.cxx
+5
-3
No files found.
stoc/Library_javaloader.mk
Dosyayı görüntüle @
1d36d91d
...
...
@@ -9,6 +9,8 @@
$(eval $(call gb_Library_Library,javaloader))
$(eval $(call gb_Library_use_external,javaloader,boost_headers))
$(eval $(call gb_Library_use_udk_api,javaloader))
$(eval $(call gb_Library_use_libraries,javaloader,\
...
...
stoc/source/javaloader/javaloader.cxx
Dosyayı görüntüle @
1d36d91d
...
...
@@ -18,6 +18,9 @@
*/
#include <cstdarg>
#include <boost/static_assert.hpp>
#include <osl/diagnose.h>
#include <osl/process.h>
...
...
@@ -155,9 +158,8 @@ const css::uno::Reference<XImplementationLoader> & JavaComponentLoader::getJavaL
// as long as our reference to the XJavaVM service lasts), and
// convert the non-refcounted pointer into a refcounted one
// immediately:
OSL_ENSURE
(
sizeof
(
sal_Int64
)
>=
sizeof
(
jvmaccess
::
UnoVirtualMachine
*
),
"Pointer cannot be represented as sal_Int64"
);
BOOST_STATIC_ASSERT
(
sizeof
(
sal_Int64
)
>=
sizeof
(
jvmaccess
::
UnoVirtualMachine
*
));
sal_Int64
nPointer
=
reinterpret_cast
<
sal_Int64
>
(
static_cast
<
jvmaccess
::
UnoVirtualMachine
*
>
(
0
));
javaVM_xJavaVM
->
getJavaVM
(
processID
)
>>=
nPointer
;
...
...
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