summaryrefslogtreecommitdiff
path: root/vbahelper/source/vbahelper/vbacommandbarhelper.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'vbahelper/source/vbahelper/vbacommandbarhelper.cxx')
-rw-r--r--vbahelper/source/vbahelper/vbacommandbarhelper.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/vbahelper/source/vbahelper/vbacommandbarhelper.cxx b/vbahelper/source/vbahelper/vbacommandbarhelper.cxx
index 01de54cd8244..562205451839 100644
--- a/vbahelper/source/vbahelper/vbacommandbarhelper.cxx
+++ b/vbahelper/source/vbahelper/vbacommandbarhelper.cxx
@@ -182,7 +182,7 @@ OUString VbaCommandBarHelper::findToolbarByName( const css::uno::Reference< css:
if( !sResourceUrl.isEmpty() )
return sResourceUrl;
- uno::Sequence< OUString > allNames = xNameAccess->getElementNames();
+ const uno::Sequence< OUString > allNames = xNameAccess->getElementNames();
auto pName = std::find_if(allNames.begin(), allNames.end(),
[this, &sName](const OUString& rName) {
return rName.startsWith( ITEM_TOOLBAR_URL )