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
9c0cb455
Kaydet (Commit)
9c0cb455
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: jvmfwk
Change-Id: Iaa1be4b338b75c340555eb4bf0760cadca16713f
üst
62edaa0f
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
19 additions
and
19 deletions
+19
-19
javaldx.cxx
jvmfwk/plugins/sunmajor/javaenvsetup/javaldx.cxx
+1
-1
sunjavaplugin.cxx
jvmfwk/plugins/sunmajor/pluginlib/sunjavaplugin.cxx
+3
-3
elements.cxx
jvmfwk/source/elements.cxx
+0
-0
fwkbase.cxx
jvmfwk/source/fwkbase.cxx
+11
-11
fwkutil.cxx
jvmfwk/source/fwkutil.cxx
+2
-2
libxmlutil.cxx
jvmfwk/source/libxmlutil.cxx
+1
-1
libxmlutil.hxx
jvmfwk/source/libxmlutil.hxx
+1
-1
No files found.
jvmfwk/plugins/sunmajor/javaenvsetup/javaldx.cxx
Dosyayı görüntüle @
9c0cb455
...
...
@@ -111,7 +111,7 @@ SAL_IMPLEMENT_MAIN_WITH_ARGS(argc, argv)
OString
getLD_LIBRARY_PATH
(
const
rtl
::
ByteSequence
&
vendorData
)
{
const
sal_Unicode
*
chars
=
(
sal_Unicode
*
)
vendorData
.
getConstArray
(
);
const
sal_Unicode
*
chars
=
reinterpret_cast
<
sal_Unicode
const
*>
(
vendorData
.
getConstArray
()
);
sal_Int32
len
=
vendorData
.
getLength
();
OUString
sData
(
chars
,
len
/
2
);
//the runtime lib is on the first line
...
...
jvmfwk/plugins/sunmajor/pluginlib/sunjavaplugin.cxx
Dosyayı görüntüle @
9c0cb455
...
...
@@ -169,7 +169,7 @@ JavaInfo* createJavaInfo(const rtl::Reference<VendorBase> & info)
}
OUString
sVendorData
=
buf
.
makeStringAndClear
();
rtl
::
ByteSequence
byteSeq
(
(
sal_Int8
*
)
sVendorData
.
pData
->
buffer
,
rtl
::
ByteSequence
byteSeq
(
reinterpret_cast
<
sal_Int8
*>
(
sVendorData
.
pData
->
buffer
)
,
sVendorData
.
getLength
()
*
sizeof
(
sal_Unicode
));
pInfo
->
arVendorData
=
byteSeq
.
get
();
rtl_byte_sequence_acquire
(
pInfo
->
arVendorData
);
...
...
@@ -179,7 +179,7 @@ JavaInfo* createJavaInfo(const rtl::Reference<VendorBase> & info)
OUString
getRuntimeLib
(
const
rtl
::
ByteSequence
&
data
)
{
const
sal_Unicode
*
chars
=
(
sal_Unicode
*
)
data
.
getConstArray
(
);
const
sal_Unicode
*
chars
=
reinterpret_cast
<
sal_Unicode
const
*>
(
data
.
getConstArray
()
);
sal_Int32
len
=
data
.
getLength
();
OUString
sData
(
chars
,
len
/
2
);
//the runtime lib is on the first line
...
...
@@ -694,7 +694,7 @@ javaPluginError jfw_plugin_startJavaVirtualMachine(
OUString
sSymbolCreateJava
(
"JNI_CreateJavaVM"
);
JNI_CreateVM_Type
*
pCreateJavaVM
=
(
JNI_CreateVM_Type
*
)
moduleRt
.
getFunctionSymbol
(
sSymbolCreateJava
);
reinterpret_cast
<
JNI_CreateVM_Type
*>
(
moduleRt
.
getFunctionSymbol
(
sSymbolCreateJava
)
);
if
(
!
pCreateJavaVM
)
{
OSL_ASSERT
(
false
);
...
...
jvmfwk/source/elements.cxx
Dosyayı görüntüle @
9c0cb455
This diff is collapsed.
Click to expand it.
jvmfwk/source/fwkbase.cxx
Dosyayı görüntüle @
9c0cb455
...
...
@@ -111,8 +111,8 @@ VendorSettings::VendorSettings():
m_xmlPathContextVendorSettings
=
xmlXPathNewContext
(
m_xmlDocVendorSettings
);
int
res
=
xmlXPathRegisterNs
(
m_xmlPathContextVendorSettings
,
(
xmlChar
*
)
"jf"
,
(
xmlChar
*
)
NS_JAVA_FRAMEWORK
);
m_xmlPathContextVendorSettings
,
reinterpret_cast
<
xmlChar
const
*>
(
"jf"
)
,
reinterpret_cast
<
xmlChar
const
*>
(
NS_JAVA_FRAMEWORK
)
);
if
(
res
==
-
1
)
throw
FrameworkException
(
JFW_E_ERROR
,
sMsgExc
);
}
...
...
@@ -130,7 +130,7 @@ VersionInfo VendorSettings::getVersionInformation(const OUString & sVendor)
CXPathObjectPtr
xPathObjectMin
;
xPathObjectMin
=
xmlXPathEvalExpression
(
(
xmlChar
*
)
sExpresion
.
getStr
(
),
xmlXPathEvalExpression
(
reinterpret_cast
<
xmlChar
const
*>
(
sExpresion
.
getStr
()
),
m_xmlPathContextVendorSettings
);
if
(
xmlXPathNodeSetIsEmpty
(
xPathObjectMin
->
nodesetval
))
{
...
...
@@ -142,7 +142,7 @@ VersionInfo VendorSettings::getVersionInformation(const OUString & sVendor)
sVersion
=
xmlNodeListGetString
(
m_xmlDocVendorSettings
,
xPathObjectMin
->
nodesetval
->
nodeTab
[
0
]
->
xmlChildrenNode
,
1
);
OString
osVersion
(
(
sal_Char
*
)(
xmlChar
*
)
sVersion
);
OString
osVersion
(
sVersion
);
aVersionInfo
.
sMinVersion
=
OStringToOUString
(
osVersion
,
RTL_TEXTENCODING_UTF8
);
}
...
...
@@ -152,7 +152,7 @@ VersionInfo VendorSettings::getVersionInformation(const OUString & sVendor)
osVendor
+
OString
(
"
\"
]/jf:maxVersion"
);
CXPathObjectPtr
xPathObjectMax
;
xPathObjectMax
=
xmlXPathEvalExpression
(
(
xmlChar
*
)
sExpresion
.
getStr
(
),
reinterpret_cast
<
xmlChar
const
*>
(
sExpresion
.
getStr
()
),
m_xmlPathContextVendorSettings
);
if
(
xmlXPathNodeSetIsEmpty
(
xPathObjectMax
->
nodesetval
))
{
...
...
@@ -164,7 +164,7 @@ VersionInfo VendorSettings::getVersionInformation(const OUString & sVendor)
sVersion
=
xmlNodeListGetString
(
m_xmlDocVendorSettings
,
xPathObjectMax
->
nodesetval
->
nodeTab
[
0
]
->
xmlChildrenNode
,
1
);
OString
osVersion
(
(
sal_Char
*
)
(
xmlChar
*
)
sVersion
);
OString
osVersion
(
sVersion
);
aVersionInfo
.
sMaxVersion
=
OStringToOUString
(
osVersion
,
RTL_TEXTENCODING_UTF8
);
}
...
...
@@ -174,7 +174,7 @@ VersionInfo VendorSettings::getVersionInformation(const OUString & sVendor)
osVendor
+
OString
(
"
\"
]/jf:excludeVersions/jf:version"
);
CXPathObjectPtr
xPathObjectVersions
;
xPathObjectVersions
=
xmlXPathEvalExpression
(
(
xmlChar
*
)
sExpresion
.
getStr
(
),
xmlXPathEvalExpression
(
reinterpret_cast
<
xmlChar
const
*>
(
sExpresion
.
getStr
()
),
m_xmlPathContextVendorSettings
);
if
(
!
xmlXPathNodeSetIsEmpty
(
xPathObjectVersions
->
nodesetval
))
{
...
...
@@ -183,12 +183,12 @@ VersionInfo VendorSettings::getVersionInformation(const OUString & sVendor)
{
if
(
cur
->
type
==
XML_ELEMENT_NODE
)
{
if
(
xmlStrcmp
(
cur
->
name
,
(
xmlChar
*
)
"version"
)
==
0
)
if
(
xmlStrcmp
(
cur
->
name
,
reinterpret_cast
<
xmlChar
const
*>
(
"version"
)
)
==
0
)
{
CXmlCharPtr
sVersion
;
sVersion
=
xmlNodeListGetString
(
m_xmlDocVendorSettings
,
cur
->
xmlChildrenNode
,
1
);
OString
osVersion
(
(
sal_Char
*
)(
xmlChar
*
)
sVersion
);
OString
osVersion
(
sVersion
);
OUString
usVersion
=
OStringToOUString
(
osVersion
,
RTL_TEXTENCODING_UTF8
);
aVersionInfo
.
addExcludeVersion
(
usVersion
);
...
...
@@ -206,7 +206,7 @@ std::vector<OUString> VendorSettings::getSupportedVendors()
//get the nodeset for the vendor elements
jfw
::
CXPathObjectPtr
result
;
result
=
xmlXPathEvalExpression
(
(
xmlChar
*
)
"/jf:javaSelection/jf:vendorInfos/jf:vendor"
,
reinterpret_cast
<
xmlChar
const
*>
(
"/jf:javaSelection/jf:vendorInfos/jf:vendor"
)
,
m_xmlPathContextVendorSettings
);
if
(
!
xmlXPathNodeSetIsEmpty
(
result
->
nodesetval
))
{
...
...
@@ -217,7 +217,7 @@ std::vector<OUString> VendorSettings::getSupportedVendors()
//between vendor elements are also text elements
if
(
cur
->
type
==
XML_ELEMENT_NODE
)
{
jfw
::
CXmlCharPtr
sAttrVendor
(
xmlGetProp
(
cur
,
(
xmlChar
*
)
"name"
));
jfw
::
CXmlCharPtr
sAttrVendor
(
xmlGetProp
(
cur
,
reinterpret_cast
<
xmlChar
const
*>
(
"name"
)
));
vecVendors
.
push_back
(
sAttrVendor
);
}
cur
=
cur
->
next
;
...
...
jvmfwk/source/fwkutil.cxx
Dosyayı görüntüle @
9c0cb455
...
...
@@ -134,7 +134,7 @@ rtl::ByteSequence encodeBase16(const rtl::ByteSequence& rawData)
pCurBuf
++
;
}
rtl
::
ByteSequence
ret
(
(
sal_Int8
*
)
pBuf
.
get
(
),
lenRaw
*
2
);
rtl
::
ByteSequence
ret
(
reinterpret_cast
<
sal_Int8
*>
(
pBuf
.
get
()
),
lenRaw
*
2
);
return
ret
;
}
...
...
@@ -173,7 +173,7 @@ rtl::ByteSequence decodeBase16(const rtl::ByteSequence& data)
}
pBuf
[
i
]
=
nibble
;
}
rtl
::
ByteSequence
ret
(
(
sal_Int8
*
)
pBuf
.
get
(
),
lenBuf
);
rtl
::
ByteSequence
ret
(
reinterpret_cast
<
sal_Int8
*>
(
pBuf
.
get
()
),
lenBuf
);
return
ret
;
}
...
...
jvmfwk/source/libxmlutil.cxx
Dosyayı görüntüle @
9c0cb455
...
...
@@ -124,7 +124,7 @@ CXmlCharPtr::operator OUString()
OUString
ret
;
if
(
_object
!=
NULL
)
{
OString
aOStr
(
(
sal_Char
*
)
_object
);
OString
aOStr
(
reinterpret_cast
<
char
*>
(
_object
)
);
ret
=
OStringToOUString
(
aOStr
,
RTL_TEXTENCODING_UTF8
);
}
return
ret
;
...
...
jvmfwk/source/libxmlutil.hxx
Dosyayı görüntüle @
9c0cb455
...
...
@@ -90,7 +90,7 @@ public:
CXmlCharPtr
&
operator
=
(
xmlChar
*
pObj
);
operator
xmlChar
*
()
const
{
return
_object
;}
operator
OUString
();
operator
OString
()
{
return
OString
(
(
sal_Char
*
)
_object
);}
operator
OString
()
{
return
OString
(
reinterpret_cast
<
sal_Char
*>
(
_object
)
);}
};
...
...
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