summaryrefslogtreecommitdiff
path: root/jvmfwk/source/elements.cxx
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-06-08 16:25:58 +0200
committerStephan Bergmann <sbergman@redhat.com>2015-06-08 16:25:58 +0200
commit62ee548b8c1b2005ceee7360378289dd31a0ae72 (patch)
tree00a60ed92f7ff3b5ad6d2587b5d9b48df4037fd4 /jvmfwk/source/elements.cxx
parent950f7c31ea0ae8a724787f05f23d1fabe59a91b7 (diff)
loplugin:cstylecast: deal with remaining pointer casts
Change-Id: I62a6714749eba8226ba3a5416ee81f2d76cf0afc
Diffstat (limited to 'jvmfwk/source/elements.cxx')
-rw-r--r--jvmfwk/source/elements.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/jvmfwk/source/elements.cxx b/jvmfwk/source/elements.cxx
index 1b9c9862c49e..901a4bdbd3f5 100644
--- a/jvmfwk/source/elements.cxx
+++ b/jvmfwk/source/elements.cxx
@@ -484,7 +484,7 @@ void NodeJava::write() const
xmlNode * nodeEnabled = pathObj->nodesetval->nodeTab[0];
xmlSetNsProp(nodeEnabled, nsXsi, reinterpret_cast<xmlChar const *>("nil"),reinterpret_cast<xmlChar const *>("false"));
- xmlNodeSetContent(nodeEnabled,(xmlChar*) CXmlCharPtr(*m_userClassPath));
+ xmlNodeSetContent(nodeEnabled,static_cast<xmlChar*>(CXmlCharPtr(*m_userClassPath)));
}
//set <javaInfo> element
@@ -852,7 +852,7 @@ void CNodeJavaInfo::loadFromNode(xmlDoc * pDoc, xmlNode * pJavaInfo)
CXmlCharPtr xmlData;
xmlData = xmlNodeListGetString(
pDoc, cur->children, 1);
- xmlChar* _data = (xmlChar*) xmlData;
+ xmlChar* _data = static_cast<xmlChar*>(xmlData);
if (_data)
{
rtl::ByteSequence seq(reinterpret_cast<sal_Int8*>(_data), strlen(reinterpret_cast<char*>(_data)));