diff options
author | Release Engineers <releng@openoffice.org> | 2008-11-28 10:06:48 +0000 |
---|---|---|
committer | Release Engineers <releng@openoffice.org> | 2008-11-28 10:06:48 +0000 |
commit | 71729f85b748dbde48143118905ecaf43e01b0f4 (patch) | |
tree | 2d0ddd01c770c9a3c07da8e52a64feba2472fa3f /jvmfwk/source/elements.cxx | |
parent | 176d2f46c0fe69dccaf4c69590db046d89ad2909 (diff) |
CWS-TOOLING: integrate CWS jl105
2008-11-24 11:36:28 +0100 jsk r264217 : #i96511
2008-11-21 12:19:22 +0100 jl r264121 : #i86079# test extensions for localized description
2008-11-18 13:01:02 +0100 jl r263763 : CWS-TOOLING: rebase CWS jl105 to trunk@263288 (milestone: DEV300:m35)
2008-11-17 12:36:19 +0100 jl r263717 : #i85509# migrating to svn
2008-11-17 12:32:12 +0100 jl r263716 : #i91204# migrating to svn
2008-11-17 12:18:15 +0100 jl r263715 : #i80449# migrating to svn
2008-11-17 12:11:44 +0100 jl r263714 : migrating to svn
2008-11-17 11:49:57 +0100 jl r263712 : #i49060# migration to svn
Diffstat (limited to 'jvmfwk/source/elements.cxx')
-rw-r--r-- | jvmfwk/source/elements.cxx | 35 |
1 files changed, 9 insertions, 26 deletions
diff --git a/jvmfwk/source/elements.cxx b/jvmfwk/source/elements.cxx index 880a4bd814a1..7897e310b62e 100644 --- a/jvmfwk/source/elements.cxx +++ b/jvmfwk/source/elements.cxx @@ -7,7 +7,7 @@ * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: elements.cxx,v $ - * $Revision: 1.23 $ + * $Revision: 1.23.10.1 $ * * This file is part of OpenOffice.org. * @@ -485,10 +485,7 @@ void NodeJava::write() const xmlNode * nodeEnabled = pathObj->nodesetval->nodeTab[0]; xmlSetNsProp(nodeEnabled, nsXsi, (xmlChar*) "nil",(xmlChar*) "false"); - - rtl::OString osUserCP = - rtl::OUStringToOString(*m_userClassPath, osl_getThreadTextEncoding()); - xmlNodeSetContent(nodeEnabled,(xmlChar*) osUserCP.getStr()); + xmlNodeSetContent(nodeEnabled,(xmlChar*) CXmlCharPtr(*m_userClassPath)); } //set <javaInfo> element @@ -1016,55 +1013,41 @@ void CNodeJavaInfo::writeToNode(xmlDoc* pDoc, xmlAddChild(pJavaInfoNode, nodeCrLf); //Create the vendor element - rtl::OString osVendor = rtl::OUStringToOString( - sVendor, osl_getThreadTextEncoding()); xmlNewTextChild(pJavaInfoNode, NULL, (xmlChar*) "vendor", - (xmlChar*) osVendor.getStr()); + CXmlCharPtr(sVendor)); //add a new line for better readability nodeCrLf = xmlNewText((xmlChar*) "\n"); xmlAddChild(pJavaInfoNode, nodeCrLf); //Create the location element - rtl::OString osLocation = rtl::OUStringToOString( - sLocation, osl_getThreadTextEncoding()); - xmlNewTextChild(pJavaInfoNode, NULL, (xmlChar*) "location", - (xmlChar*) osLocation.getStr()); + CXmlCharPtr(sLocation)); //add a new line for better readability nodeCrLf = xmlNewText((xmlChar*) "\n"); xmlAddChild(pJavaInfoNode, nodeCrLf); //Create the version element - rtl::OString osVersion = rtl::OUStringToOString( - sVersion, osl_getThreadTextEncoding()); - xmlNewTextChild(pJavaInfoNode, NULL, (xmlChar*) "version", - (xmlChar*) osVersion.getStr()); + CXmlCharPtr(sVersion)); //add a new line for better readability nodeCrLf = xmlNewText((xmlChar*) "\n"); xmlAddChild(pJavaInfoNode, nodeCrLf); //Create the features element - rtl::OUString usFeatures = rtl::OUString::valueOf( + rtl::OUString sFeatures = rtl::OUString::valueOf( (sal_Int64)nFeatures, 16); - rtl::OString sFeatures = rtl::OUStringToOString( - usFeatures, osl_getThreadTextEncoding()); - xmlNewTextChild(pJavaInfoNode, NULL, (xmlChar*) "features", - (xmlChar*) sFeatures.getStr()); + CXmlCharPtr(sFeatures)); //add a new line for better readability nodeCrLf = xmlNewText((xmlChar*) "\n"); xmlAddChild(pJavaInfoNode, nodeCrLf); //Create the requirements element - rtl::OUString usRequirements = rtl::OUString::valueOf( + rtl::OUString sRequirements = rtl::OUString::valueOf( (sal_Int64) nRequirements, 16); - rtl::OString sRequirements = rtl::OUStringToOString( - usRequirements, osl_getThreadTextEncoding()); - xmlNewTextChild(pJavaInfoNode, NULL, (xmlChar*) "requirements", - (xmlChar*) sRequirements.getStr()); + CXmlCharPtr(sRequirements)); //add a new line for better readability nodeCrLf = xmlNewText((xmlChar*) "\n"); xmlAddChild(pJavaInfoNode, nodeCrLf); |