summaryrefslogtreecommitdiff
path: root/sc/source/ui/dbgui/filtdlg.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sc/source/ui/dbgui/filtdlg.cxx')
-rw-r--r--sc/source/ui/dbgui/filtdlg.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/sc/source/ui/dbgui/filtdlg.cxx b/sc/source/ui/dbgui/filtdlg.cxx
index e238ff61a2ed..1382057b4524 100644
--- a/sc/source/ui/dbgui/filtdlg.cxx
+++ b/sc/source/ui/dbgui/filtdlg.cxx
@@ -670,11 +670,11 @@ void ScFilterDlg::UpdateColorList(size_t nList)
maColorLbArr[nPos]->append(sId, OUString(), *pDev);
}
- auto aItem = rEntry.GetQueryItem();
- if (aItem.maColor == rColor
- && ((sSelectedCondition == aStrFontColor && aItem.meType == ScQueryEntry::ByTextColor)
+ const auto& rItem = rEntry.GetQueryItem();
+ if (rItem.maColor == rColor
+ && ((sSelectedCondition == aStrFontColor && rItem.meType == ScQueryEntry::ByTextColor)
|| (sSelectedCondition == aStrBackgroundColor
- && aItem.meType == ScQueryEntry::ByBackgroundColor)))
+ && rItem.meType == ScQueryEntry::ByBackgroundColor)))
{
maColorLbArr[nPos]->set_active_id(sId);
}