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
ba868c28
Kaydet (Commit)
ba868c28
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: I302d313f2d14d908672d4534aad1818e820eaae4
üst
88d7938a
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
10 deletions
+10
-10
sunjavaplugin.cxx
jvmfwk/plugins/sunmajor/pluginlib/sunjavaplugin.cxx
+2
-2
elements.cxx
jvmfwk/source/elements.cxx
+5
-5
framework.cxx
jvmfwk/source/framework.cxx
+3
-3
No files found.
jvmfwk/plugins/sunmajor/pluginlib/sunjavaplugin.cxx
Dosyayı görüntüle @
ba868c28
...
...
@@ -145,7 +145,7 @@ OString getPluginJarPath(
JavaInfo
*
createJavaInfo
(
const
rtl
::
Reference
<
VendorBase
>
&
info
)
{
JavaInfo
*
pInfo
=
(
JavaInfo
*
)
rtl_allocateMemory
(
sizeof
(
JavaInfo
));
JavaInfo
*
pInfo
=
static_cast
<
JavaInfo
*>
(
rtl_allocateMemory
(
sizeof
(
JavaInfo
)
));
if
(
pInfo
==
NULL
)
return
NULL
;
OUString
sVendor
=
info
->
getVendor
();
...
...
@@ -351,7 +351,7 @@ javaPluginError jfw_plugin_getAllJavaInfos(
}
//Now vecVerifiedInfos contains all those JREs which meet the version requirements
//Transfer them into the array that is passed out.
arInfo
=
(
JavaInfo
**
)
rtl_allocateMemory
(
vecVerifiedInfos
.
size
()
*
sizeof
(
JavaInfo
*
));
arInfo
=
static_cast
<
JavaInfo
**>
(
rtl_allocateMemory
(
vecVerifiedInfos
.
size
()
*
sizeof
(
JavaInfo
*
)
));
int
j
=
0
;
typedef
vector
<
rtl
::
Reference
<
VendorBase
>
>::
const_iterator
cit
;
for
(
cit
ii
=
vecVerifiedInfos
.
begin
();
ii
!=
vecVerifiedInfos
.
end
();
++
ii
,
++
j
)
...
...
jvmfwk/source/elements.cxx
Dosyayı görüntüle @
ba868c28
...
...
@@ -979,7 +979,7 @@ JavaInfo * CNodeJavaInfo::makeJavaInfo() const
{
if
(
bNil
==
true
||
m_bEmptyNode
==
true
)
return
NULL
;
JavaInfo
*
pInfo
=
(
JavaInfo
*
)
rtl_allocateMemory
(
sizeof
(
JavaInfo
));
JavaInfo
*
pInfo
=
static_cast
<
JavaInfo
*>
(
rtl_allocateMemory
(
sizeof
(
JavaInfo
)
));
if
(
pInfo
==
NULL
)
return
NULL
;
memset
(
pInfo
,
0
,
sizeof
(
JavaInfo
));
...
...
@@ -1075,8 +1075,8 @@ void MergedSettings::getVmParametersArray(
osl
::
MutexGuard
guard
(
FwkMutex
::
get
());
OSL_ASSERT
(
parParams
!=
NULL
&&
size
!=
NULL
);
*
parParams
=
(
rtl_uString
**
)
rtl_allocateMemory
(
sizeof
(
rtl_uString
*
)
*
m_vmParams
.
size
());
*
parParams
=
static_cast
<
rtl_uString
**>
(
rtl_allocateMemory
(
sizeof
(
rtl_uString
*
)
*
m_vmParams
.
size
())
)
;
if
(
*
parParams
==
NULL
)
return
;
...
...
@@ -1097,8 +1097,8 @@ void MergedSettings::getJRELocations(
osl
::
MutexGuard
guard
(
FwkMutex
::
get
());
assert
(
parLocations
!=
NULL
&&
size
!=
NULL
);
*
parLocations
=
(
rtl_uString
**
)
rtl_allocateMemory
(
sizeof
(
rtl_uString
*
)
*
m_JRELocations
.
size
());
*
parLocations
=
static_cast
<
rtl_uString
**>
(
rtl_allocateMemory
(
sizeof
(
rtl_uString
*
)
*
m_JRELocations
.
size
())
)
;
if
(
*
parLocations
==
NULL
)
return
;
...
...
jvmfwk/source/framework.cxx
Dosyayı görüntüle @
ba868c28
...
...
@@ -171,8 +171,8 @@ javaFrameworkError SAL_CALL jfw_findAllJREs(JavaInfo ***pparInfo, sal_Int32 *pSi
}
//create an fill the array of JavaInfo*
sal_Int32
nSize
=
vecInfo
.
size
()
+
vecInfoManual2
.
size
();
*
pparInfo
=
(
JavaInfo
**
)
rtl_allocateMemory
(
nSize
*
sizeof
(
JavaInfo
*
));
*
pparInfo
=
static_cast
<
JavaInfo
**>
(
rtl_allocateMemory
(
nSize
*
sizeof
(
JavaInfo
*
))
)
;
if
(
*
pparInfo
==
NULL
)
return
JFW_E_ERROR
;
...
...
@@ -1111,7 +1111,7 @@ JavaInfo * CJavaInfo::copyJavaInfo(const JavaInfo * pInfo)
if
(
pInfo
==
NULL
)
return
NULL
;
JavaInfo
*
newInfo
=
(
JavaInfo
*
)
rtl_allocateMemory
(
sizeof
(
JavaInfo
));
static_cast
<
JavaInfo
*>
(
rtl_allocateMemory
(
sizeof
(
JavaInfo
)
));
if
(
newInfo
)
{
memcpy
(
newInfo
,
pInfo
,
sizeof
(
JavaInfo
));
...
...
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