summaryrefslogtreecommitdiff
path: root/uui
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2019-10-17 15:14:02 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2019-10-17 18:16:28 +0200
commit3ebbb150242cf049a9ddab7f498c63f3a44aa034 (patch)
tree3bdf235f490b173919369e7062570322effa795d /uui
parent73df133143daaff14c364468598bb250db6aecb1 (diff)
loplugin:buffereadd find stuff involving adding *StringBuffer
and create conversion methods on *StringBuffer to make this work Change-Id: I3cf5ee3e139826168894b46eff8ee4bcde00cb7e Reviewed-on: https://gerrit.libreoffice.org/80949 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'uui')
-rw-r--r--uui/source/iahndl.cxx9
1 files changed, 2 insertions, 7 deletions
diff --git a/uui/source/iahndl.cxx b/uui/source/iahndl.cxx
index 5b026a4082d9..87b4825043cb 100644
--- a/uui/source/iahndl.cxx
+++ b/uui/source/iahndl.cxx
@@ -891,21 +891,16 @@ UUIInteractionHelper::getInteractionHandlerList(
// Iterate over children.
for ( const auto& rElem : aElems )
{
- OUStringBuffer aElemBuffer;
- aElemBuffer.append( "['" );
- aElemBuffer.append( rElem );
-
try
{
InteractionHandlerData aInfo;
// Obtain service name.
- OUStringBuffer aKeyBuffer = aElemBuffer;
- aKeyBuffer.append( "']/ServiceName" );
+ OUString aKeyBuffer = "['" + rElem + "']/ServiceName";
OUString aValue;
if ( !( xHierNameAccess->getByHierarchicalName(
- aKeyBuffer.makeStringAndClear() ) >>= aValue ) )
+ aKeyBuffer ) >>= aValue ) )
{
OSL_FAIL( "GetInteractionHandlerList - "
"Error getting item value!" );