summaryrefslogtreecommitdiff
path: root/xmlsecurity/source/framework
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2021-04-21 13:48:45 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2021-04-22 21:42:14 +0200
commit75997f13ee3a71d6c994392264b0190bd7bb6756 (patch)
tree4dc35a2e62e41d4b1f7953367419ff3fb072635f /xmlsecurity/source/framework
parentb546af03ab9e371c70ce72562bc0a492972a8585 (diff)
no need to create temporaries when appending number to O[U]StringBuffer
Change-Id: I36d82423b5f75010552696a66cec7e53ee265ce4 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/114395 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'xmlsecurity/source/framework')
-rw-r--r--xmlsecurity/source/framework/buffernode.cxx4
-rw-r--r--xmlsecurity/source/framework/saxeventkeeperimpl.cxx4
2 files changed, 4 insertions, 4 deletions
diff --git a/xmlsecurity/source/framework/buffernode.cxx b/xmlsecurity/source/framework/buffernode.cxx
index 359c4a2f3f44..d966217ee853 100644
--- a/xmlsecurity/source/framework/buffernode.cxx
+++ b/xmlsecurity/source/framework/buffernode.cxx
@@ -200,7 +200,7 @@ OUString BufferNode::printChildren() const
for( const ElementCollector* ii : m_vElementCollectors )
{
- rc.append("BufID=").append(OUString::number(ii->getBufferId()));
+ rc.append("BufID=").append(ii->getBufferId());
if (ii->getModify())
{
@@ -222,7 +222,7 @@ OUString BufferNode::printChildren() const
break;
}
- rc.append("(SecID=").append(OUString::number(ii->getSecurityId())).append(") ");
+ rc.append("(SecID=").append(ii->getSecurityId()).append(") ");
}
return rc.makeStringAndClear();
diff --git a/xmlsecurity/source/framework/saxeventkeeperimpl.cxx b/xmlsecurity/source/framework/saxeventkeeperimpl.cxx
index 5e2f697d64ac..41b0a89b57ad 100644
--- a/xmlsecurity/source/framework/saxeventkeeperimpl.cxx
+++ b/xmlsecurity/source/framework/saxeventkeeperimpl.cxx
@@ -308,8 +308,8 @@ OUString SAXEventKeeperImpl::printBufferNode(
ElementMark * pBlocker = pBufferNode->getBlocker();
if (pBlocker != nullptr)
{
- rc.append(OUString::number( pBlocker->getBufferId() )).append("(SecId=")
- .append(OUString::number( pBlocker->getSecurityId() )).append(") ");
+ rc.append( pBlocker->getBufferId() ).append("(SecId=")
+ .append( pBlocker->getSecurityId() ).append(") ");
}
rc.append("\n");