From 77d1affc868b137db0ba2c5db431fa99e6d1ad51 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Thu, 28 Sep 2023 09:07:18 +0100 Subject: cid#1545248 COPY_INSTEAD_OF_MOVE MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: I67cb6bbebeecb595f68b0a70c7416e6aaa56399f Reviewed-on: https://gerrit.libreoffice.org/c/core/+/157358 Tested-by: Caolán McNamara Reviewed-by: Caolán McNamara --- cui/source/options/optlingu.cxx | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'cui/source') diff --git a/cui/source/options/optlingu.cxx b/cui/source/options/optlingu.cxx index 1fda06663fa8..4246b607d2d0 100644 --- a/cui/source/options/optlingu.cxx +++ b/cui/source/options/optlingu.cxx @@ -1020,12 +1020,8 @@ bool SvxLinguTabPage::FillItemSet( SfxItemSet* rCoreSet ) if (LinguMgr::GetIgnoreAllList() == xDic) bChecked = true; xDic->setActive( bChecked ); - if (bChecked) - { - OUString aDicName( xDic->getName() ); - pActiveDic[ nActiveDics++ ] = aDicName; - } + pActiveDic[nActiveDics++] = xDic->getName(); } } } -- cgit