summaryrefslogtreecommitdiffstats
path: root/basctl/source/accessibility/accessibledialogwindow.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2018-10-23 07:36:33 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-10-23 08:39:10 +0200
commit44688e498c9672f0a1759ead394f6d6e0f0ef5fd (patch)
treef2f1b33f882ced5c23c2854177c9b266c907ac56 /basctl/source/accessibility/accessibledialogwindow.cxx
parentFrame Contextmenu in Writer and other sw apps (diff)
downloadcore-44688e498c9672f0a1759ead394f6d6e0f0ef5fd.tar.gz
core-44688e498c9672f0a1759ead394f6d6e0f0ef5fd.zip
clang-tidy performance-unnecessary-copy-initialization in
basctl..basic Change-Id: I4009282869cd8a2f269093564bd4fafccab80ec3 Reviewed-on: https://gerrit.libreoffice.org/62212 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'basctl/source/accessibility/accessibledialogwindow.cxx')
-rw-r--r--basctl/source/accessibility/accessibledialogwindow.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/basctl/source/accessibility/accessibledialogwindow.cxx b/basctl/source/accessibility/accessibledialogwindow.cxx
index 177c79a8eed0..3c5987a2cb28 100644
--- a/basctl/source/accessibility/accessibledialogwindow.cxx
+++ b/basctl/source/accessibility/accessibledialogwindow.cxx
@@ -180,7 +180,7 @@ bool AccessibleDialogWindow::IsChildVisible( const ChildDescriptor& rDesc )
const SdrLayer* pSdrLayer = rLayerAdmin.GetLayerPerID( nLayerId );
if ( pSdrLayer )
{
- OUString aLayerName = pSdrLayer->GetName();
+ const OUString& aLayerName = pSdrLayer->GetName();
SdrView& rView = m_pDialogWindow->GetView();
if (rView.IsLayerVisible(aLayerName))
{