diff options
author | Dr. David Alan Gilbert <dave@treblig.org> | 2021-01-24 03:01:42 +0000 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-01-24 17:20:07 +0100 |
commit | 22070dfc6b9645346de46d90858b6a6b17d8259f (patch) | |
tree | 43d55902d60fcaef086ff87b565240f3507a263b /svx | |
parent | 42c33aebdc7c1136b487897f5d55a218518f6c91 (diff) |
SvxLanguageBox::SetLanguageList Merge if's
Cppcheck noticed a run of 3 if's with the same condition next to each
other; they're fall out of e54d65dea830c which simplified the conditions
to all be the same.
Squash them.
Change-Id: I5f0b928b9a629dc43cc62cc03ab6ced2a4b42b2d
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/109851
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'svx')
-rw-r--r-- | svx/source/dialog/langbox.cxx | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/svx/source/dialog/langbox.cxx b/svx/source/dialog/langbox.cxx index 5b7526d94084..49f608629890 100644 --- a/svx/source/dialog/langbox.cxx +++ b/svx/source/dialog/langbox.cxx @@ -224,14 +224,10 @@ void SvxLanguageBox::SetLanguageList(SvxLanguageListFlags nLangList, bool bHasLa { aTmp = xAvail->getAvailableLocales( SN_SPELLCHECKER ); aSpellAvailLang = lcl_LocaleSeqToLangSeq( aTmp ); - } - if (bAddAvailable) - { + aTmp = xAvail->getAvailableLocales( SN_HYPHENATOR ); aHyphAvailLang = lcl_LocaleSeqToLangSeq( aTmp ); - } - if (bAddAvailable) - { + aTmp = xAvail->getAvailableLocales( SN_THESAURUS ); aThesAvailLang = lcl_LocaleSeqToLangSeq( aTmp ); } |