summaryrefslogtreecommitdiff
path: root/xmloff/source/transform
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-05-26 10:58:42 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-05-28 19:44:08 +0200
commitef513fd4b049b214a03fbe6e62a5ea43680a7a9b (patch)
tree82f2ce93bc8e5fde6dce8685b633c3d643c9f069 /xmloff/source/transform
parent826f1bca40a01f0a249d5b6cbb7c39c11638a060 (diff)
remove unnecessary use of OString::getStr
Change-Id: I0490efedf459190521f4339854b3394d57765fdb Reviewed-on: https://gerrit.libreoffice.org/38058 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'xmloff/source/transform')
-rw-r--r--xmloff/source/transform/StyleOOoTContext.cxx23
1 files changed, 7 insertions, 16 deletions
diff --git a/xmloff/source/transform/StyleOOoTContext.cxx b/xmloff/source/transform/StyleOOoTContext.cxx
index 82941b446753..29512be6af94 100644
--- a/xmloff/source/transform/StyleOOoTContext.cxx
+++ b/xmloff/source/transform/StyleOOoTContext.cxx
@@ -317,22 +317,13 @@ XMLTypedPropertiesOOoTContext_Impl
XML_PROP_TYPE_END==m_aPropTypes[1] ||
(i<MAX_PROP_TYPES && XML_PROP_TYPE_END!=m_aPropTypes[i]) ) )
{
- OString aTmp("Didn't find property: ");
- const OUString& rPrefix =
- GetTransformer().GetNamespaceMap().GetPrefixByKey( nPrefix );
- aTmp += OString( rPrefix.getStr(), rPrefix.getLength(),
- RTL_TEXTENCODING_ASCII_US );
- aTmp += OString( ':' );
- aTmp += OString( rLocalName.getStr(), rLocalName.getLength(),
- RTL_TEXTENCODING_ASCII_US );
- aTmp += OString(", assuming <style:");
- const OUString& rName =
- ::xmloff::token::GetXMLToken( aPropTokens[m_aPropTypes[0]] );
- aTmp += OString( rName.getStr(), rName.getLength(),
- RTL_TEXTENCODING_ASCII_US );
- aTmp += OString( '>' );
-
- OSL_FAIL(aTmp.getStr());
+ SAL_WARN("xmloff", "Didn't find property: "
+ << GetTransformer().GetNamespaceMap().GetPrefixByKey( nPrefix )
+ << ":"
+ << rLocalName
+ << ", assuming <style:"
+ << ::xmloff::token::GetXMLToken( aPropTokens[m_aPropTypes[0]] )
+ << ">" );
}
#endif