summaryrefslogtreecommitdiff
path: root/chart2
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2019-07-27 21:08:23 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2019-07-28 16:51:51 +0200
commitff41cf1b8dbeb36b8824257acb5c5ba272415108 (patch)
treef10fd5ac3dac8b21ab0540a2fc66ee3ebaf16a7e /chart2
parent9c9e5b5ee7f1144c20624ac9471354a218638175 (diff)
loplugin:oncevar
Change-Id: I3c014f53607a849c743a2fd1aa47d03d5af978fb Reviewed-on: https://gerrit.libreoffice.org/76495 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'chart2')
-rw-r--r--chart2/source/controller/dialogs/tp_DataSource.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/chart2/source/controller/dialogs/tp_DataSource.cxx b/chart2/source/controller/dialogs/tp_DataSource.cxx
index c650e7951af6..48acb07074b9 100644
--- a/chart2/source/controller/dialogs/tp_DataSource.cxx
+++ b/chart2/source/controller/dialogs/tp_DataSource.cxx
@@ -82,7 +82,6 @@ bool lcl_UpdateCurrentSeriesName(weld::TreeView& rOutListBox)
OUString lcl_GetSelectedRole(const weld::TreeView& rRoleListBox, bool bUITranslated = false)
{
- OUString aResult;
int nEntry = rRoleListBox.get_selected_index();
if (nEntry != -1)
{
@@ -91,7 +90,7 @@ OUString lcl_GetSelectedRole(const weld::TreeView& rRoleListBox, bool bUITransla
::chart::SeriesEntry* pEntry = reinterpret_cast<::chart::SeriesEntry*>(rRoleListBox.get_id(nEntry).toInt64());
return pEntry->m_sRole;
}
- return aResult;
+ return OUString();
}
OUString lcl_GetSelectedRolesRange( const weld::TreeView& rRoleListBox )