diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-07-26 15:04:06 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-07-27 11:06:44 +0200 |
commit | 82a4ef72d6e34c2f5075069a1b353f7fd41c7595 (patch) | |
tree | 460ef9ebde66e8a23da59df76db0fa18426504ca /vcl/unx/gtk/a11y | |
parent | cacbb0faef77ae8462de9ff5c7307a6a2e28b2bb (diff) |
loplugin:stringloop in vcl
Change-Id: I086a809b6541041b627daa93f9a08be2a9218550
Reviewed-on: https://gerrit.libreoffice.org/58117
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'vcl/unx/gtk/a11y')
-rw-r--r-- | vcl/unx/gtk/a11y/atkwrapper.cxx | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/vcl/unx/gtk/a11y/atkwrapper.cxx b/vcl/unx/gtk/a11y/atkwrapper.cxx index dc61baab503b..951c758eeac7 100644 --- a/vcl/unx/gtk/a11y/atkwrapper.cxx +++ b/vcl/unx/gtk/a11y/atkwrapper.cxx @@ -55,6 +55,7 @@ #include <com/sun/star/beans/Property.hpp> #include <rtl/ref.hxx> +#include <rtl/strbuf.hxx> #include <osl/diagnose.h> #include <cppuhelper/factory.hxx> #include <cppuhelper/queryinterface.hxx> @@ -751,17 +752,18 @@ ensureTypeFor( uno::XInterface *pAccessible ) { int i; bool bTypes[ aTypeTableSize ] = { false, }; - OString aTypeName( "OOoAtkObj" ); + OStringBuffer aTypeNameBuf( "OOoAtkObj" ); for( i = 0; i < aTypeTableSize; i++ ) { if( isOfType( pAccessible, aTypeTable[i].aGetUnoType() ) ) { - aTypeName += aTypeTable[i].name; + aTypeNameBuf.append(aTypeTable[i].name); bTypes[i] = true; } } + OString aTypeName = aTypeNameBuf.makeStringAndClear(); GType nType = g_type_from_name( aTypeName.getStr() ); if( nType == G_TYPE_INVALID ) { |