summaryrefslogtreecommitdiff
path: root/xmloff
diff options
context:
space:
mode:
authorNoel Grandin <noelgrandin@gmail.com>2017-05-28 19:41:52 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-08-17 11:55:13 +0200
commit9881bea8d41997fb46579eb5f0314300159c96cc (patch)
treef52daa7055d2d28959e2d1ad576d963b7c0d3b2d /xmloff
parentec4034c4a4f23574401ba2a74b635d9ed4befbc8 (diff)
remove unnecessary use of OUString::getStr
Change-Id: I3d13e1c0bb6aa4a7aacc463198747c1368ebc9b4 Reviewed-on: https://gerrit.libreoffice.org/38114 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'xmloff')
-rw-r--r--xmloff/source/draw/xexptran.cxx6
-rw-r--r--xmloff/source/forms/propertyimport.cxx5
2 files changed, 5 insertions, 6 deletions
diff --git a/xmloff/source/draw/xexptran.cxx b/xmloff/source/draw/xexptran.cxx
index efbb82111ac8..1c2c9a7f5e27 100644
--- a/xmloff/source/draw/xexptran.cxx
+++ b/xmloff/source/draw/xexptran.cxx
@@ -350,7 +350,7 @@ void SdXMLImExTransform2D::SetString(const OUString& rNew, const SvXMLUnitConver
if(!msString.isEmpty())
{
- const OUString aStr(msString.getStr(), (sal_uInt16)msString.getLength());
+ const OUString aStr = msString;
const sal_Int32 nLen(aStr.getLength());
const OUString aString_rotate( "rotate" );
@@ -762,7 +762,7 @@ void SdXMLImExTransform3D::SetString(const OUString& rNew, const SvXMLUnitConver
if(!msString.isEmpty())
{
- const OUString aStr(msString.getStr(), (sal_uInt16)msString.getLength());
+ const OUString aStr = msString;
const sal_Int32 nLen(aStr.getLength());
const OUString aString_rotatex( "rotatex" );
@@ -1023,7 +1023,7 @@ SdXMLImExViewBox::SdXMLImExViewBox(const OUString& rNew, const SvXMLUnitConverte
{
if(!msString.isEmpty())
{
- const OUString aStr(msString.getStr(), (sal_uInt16)msString.getLength());
+ const OUString aStr = msString;
const sal_Int32 nLen(aStr.getLength());
sal_Int32 nPos(0);
diff --git a/xmloff/source/forms/propertyimport.cxx b/xmloff/source/forms/propertyimport.cxx
index 2c17d7129841..09d1ba7161be 100644
--- a/xmloff/source/forms/propertyimport.cxx
+++ b/xmloff/source/forms/propertyimport.cxx
@@ -535,9 +535,8 @@ SvXMLImportContext* OListPropertyContext::CreateChildContext( sal_uInt16 _nPrefi
}
else
{
- OSL_FAIL( OStringBuffer("OListPropertyContext::CreateChildContext: unknown child element (\"").
- append(OUStringToOString(_rLocalName.getStr(), RTL_TEXTENCODING_ASCII_US)).
- append("\")!").getStr() );
+ SAL_WARN( "xmloff", "OListPropertyContext::CreateChildContext: unknown child element (\""
+ << _rLocalName << "\")!" );
return new SvXMLImportContext( GetImport(), _nPrefix, _rLocalName );
}
}