diff options
author | Caolán McNamara <caolanm@redhat.com> | 2011-03-01 14:54:42 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2011-03-01 20:37:51 +0000 |
commit | ac22bf0d8ad4ebc06772a5de07759c38e7c8df0a (patch) | |
tree | 056cef8570467f3d06747dedb3d5460faedb71a8 /unoxml/source | |
parent | 4bd00a92087ff152ebe4a64edda0ca83545fa8d2 (diff) |
avoid implicit cast
Diffstat (limited to 'unoxml/source')
-rw-r--r-- | unoxml/source/dom/characterdata.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/unoxml/source/dom/characterdata.cxx b/unoxml/source/dom/characterdata.cxx index 060d33d3f546..0ee8bb4b65cd 100644 --- a/unoxml/source/dom/characterdata.cxx +++ b/unoxml/source/dom/characterdata.cxx @@ -80,7 +80,7 @@ namespace DOM { // get current data OString aData((const sal_Char*)xmlNodeGetContent(m_aNodePtr)); - OUString tmp(aData, aData.getLength(), RTL_TEXTENCODING_UTF8); + OUString tmp(rtl::OStringToOUString(aData, RTL_TEXTENCODING_UTF8)); if (offset > tmp.getLength() || offset < 0 || count < 0) { DOMException e; e.Code = DOMExceptionType_INDEX_SIZE_ERR; @@ -142,7 +142,7 @@ namespace DOM { // get current data OString aData((const sal_Char*)xmlNodeGetContent(m_aNodePtr)); - OUString tmp(aData, aData.getLength(), RTL_TEXTENCODING_UTF8); + OUString tmp(rtl::OStringToOUString(aData, RTL_TEXTENCODING_UTF8)); if (offset > tmp.getLength() || offset < 0) { DOMException e; e.Code = DOMExceptionType_INDEX_SIZE_ERR; @@ -172,7 +172,7 @@ namespace DOM { // get current data OString aData((const sal_Char*)xmlNodeGetContent(m_aNodePtr)); - OUString tmp(aData, aData.getLength(), RTL_TEXTENCODING_UTF8); + OUString tmp(rtl::OStringToOUString(aData, RTL_TEXTENCODING_UTF8)); if (offset > tmp.getLength() || offset < 0 || count < 0){ DOMException e; e.Code = DOMExceptionType_INDEX_SIZE_ERR; @@ -218,7 +218,7 @@ namespace DOM { // get current data OString aData((const sal_Char*)xmlNodeGetContent(m_aNodePtr)); - OUString tmp(aData, aData.getLength(), RTL_TEXTENCODING_UTF8); + OUString tmp(rtl::OStringToOUString(aData, RTL_TEXTENCODING_UTF8)); if (offset > tmp.getLength() || offset < 0 || count < 0) { DOMException e; e.Code = DOMExceptionType_INDEX_SIZE_ERR; |