summaryrefslogtreecommitdiff
path: root/unoxml
diff options
context:
space:
mode:
authorHerbert Dürr <hdu@apache.org>2013-11-28 15:52:32 +0000
committerHerbert Dürr <hdu@apache.org>2013-11-28 15:52:32 +0000
commit1a15756db5173403fcdbc3ad522c3a76e88a7082 (patch)
tree915c55a6ea8920d9bf44229129cdfcd2679a3914 /unoxml
parentb8354e209b88f3375635f20542096ed1dac24ba8 (diff)
#i123068# remove implicit conversions from rtl strings to their elements
Notes
Notes: prefer: 112bdf84d684590e042725c7173e059b4afa2f83
Diffstat (limited to 'unoxml')
-rw-r--r--unoxml/source/dom/characterdata.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/unoxml/source/dom/characterdata.cxx b/unoxml/source/dom/characterdata.cxx
index 6d4bac2c539a..0d232245b5a5 100644
--- a/unoxml/source/dom/characterdata.cxx
+++ b/unoxml/source/dom/characterdata.cxx
@@ -89,7 +89,7 @@ namespace DOM
::boost::shared_ptr<xmlChar const> const pContent(
xmlNodeGetContent(m_aNodePtr), xmlFree);
OString aData(reinterpret_cast<sal_Char const*>(pContent.get()));
- OUString tmp(aData, aData.getLength(), RTL_TEXTENCODING_UTF8);
+ OUString tmp( aData.getStr(), aData.getLength(), RTL_TEXTENCODING_UTF8);
if (offset > tmp.getLength() || offset < 0 || count < 0) {
DOMException e;
e.Code = DOMExceptionType_INDEX_SIZE_ERR;
@@ -160,7 +160,7 @@ namespace DOM
::boost::shared_ptr<xmlChar const> const pContent(
xmlNodeGetContent(m_aNodePtr), xmlFree);
OString aData(reinterpret_cast<sal_Char const*>(pContent.get()));
- OUString tmp(aData, aData.getLength(), RTL_TEXTENCODING_UTF8);
+ OUString tmp( aData.getStr(), aData.getLength(), RTL_TEXTENCODING_UTF8);
if (offset > tmp.getLength() || offset < 0) {
DOMException e;
e.Code = DOMExceptionType_INDEX_SIZE_ERR;
@@ -195,7 +195,7 @@ namespace DOM
::boost::shared_ptr<xmlChar const> const pContent(
xmlNodeGetContent(m_aNodePtr), xmlFree);
OString aData(reinterpret_cast<sal_Char const*>(pContent.get()));
- OUString tmp(aData, aData.getLength(), RTL_TEXTENCODING_UTF8);
+ OUString tmp( aData.getStr(), aData.getLength(), RTL_TEXTENCODING_UTF8);
if (offset > tmp.getLength() || offset < 0 || count < 0){
DOMException e;
e.Code = DOMExceptionType_INDEX_SIZE_ERR;
@@ -250,7 +250,7 @@ namespace DOM
::boost::shared_ptr<xmlChar const> const pContent(
xmlNodeGetContent(m_aNodePtr), xmlFree);
OString aData(reinterpret_cast<sal_Char const*>(pContent.get()));
- OUString tmp(aData, aData.getLength(), RTL_TEXTENCODING_UTF8);
+ OUString tmp( aData.getStr(), aData.getLength(), RTL_TEXTENCODING_UTF8);
if (offset > tmp.getLength() || offset < 0 || count < 0) {
DOMException e;
e.Code = DOMExceptionType_INDEX_SIZE_ERR;