diff options
author | Caolán McNamara <caolanm@redhat.com> | 2022-02-25 21:43:04 +0000 |
---|---|---|
committer | Andras Timar <andras.timar@collabora.com> | 2022-03-09 09:17:13 +0100 |
commit | bc206a74178efc60cdff514cf7709b90e6cba8b2 (patch) | |
tree | 6db056efaa078b5f0e882ac1369adb588d651714 /starmath | |
parent | ea05e14c0002a6fdc4959486e8f3c12ccda11917 (diff) |
cid#1500654 Using a moved object
Change-Id: Ia4b74cdeeae7f0c03e7e050be30714f948c67106
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/130549
Tested-by: Jenkins
Reviewed-by: Michael Stahl <michael.stahl@allotropia.de>
Diffstat (limited to 'starmath')
-rw-r--r-- | starmath/source/dialog.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/starmath/source/dialog.cxx b/starmath/source/dialog.cxx index 0857f2456db6..b7d875f94082 100644 --- a/starmath/source/dialog.cxx +++ b/starmath/source/dialog.cxx @@ -1349,8 +1349,9 @@ bool SmSymbolDialog::SelectSymbolSet(const OUString &rSymbolSetName) return pSym1->GetCharacter() < pSym2->GetCharacter(); } ); + const bool bEmptySymbolSet = aSymbolSet.empty(); m_xSymbolSetDisplay->SetSymbolSet( std::move(aSymbolSet) ); - if (!aSymbolSet.empty()) + if (!bEmptySymbolSet) SelectSymbol(0); bRet = true; |