diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2022-06-10 15:58:28 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2022-06-10 21:14:20 +0200 |
commit | 95d91cd41e030a317b51a00086bf042282c8f9e1 (patch) | |
tree | aaa76be493c79a85581510a3f1312c69bc27f012 /svx | |
parent | 3b5c92677708ab0135d63e1496b91054383c45b4 (diff) |
loplugin:constantparam
Change-Id: I8134744b6c1279c497d4763eddf614bb840f7f3f
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/135602
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'svx')
-rw-r--r-- | svx/source/dialog/txencbox.cxx | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/svx/source/dialog/txencbox.cxx b/svx/source/dialog/txencbox.cxx index 0aff6781dbe0..f6bc5fa72919 100644 --- a/svx/source/dialog/txencbox.cxx +++ b/svx/source/dialog/txencbox.cxx @@ -132,7 +132,7 @@ SvxTextEncodingTreeView::~SvxTextEncodingTreeView() namespace { - std::vector<int> FillFromTextEncodingTable(bool bExcludeImportSubsets, sal_uInt32 nExcludeInfoFlags, sal_uInt32 nButIncludeInfoFlags) + std::vector<int> FillFromTextEncodingTable(bool bExcludeImportSubsets, sal_uInt32 nExcludeInfoFlags) { std::vector<int> aRet; @@ -156,7 +156,7 @@ namespace nEnc == RTL_TEXTENCODING_UCS4) ) bInsert = false; // InfoFlags don't work for Unicode :-( } - else if ( (aInfo.Flags & nButIncludeInfoFlags) == 0 ) + else bInsert = false; } } @@ -180,10 +180,9 @@ namespace } void SvxTextEncodingBox::FillFromTextEncodingTable( - bool bExcludeImportSubsets, sal_uInt32 nExcludeInfoFlags, - sal_uInt32 nButIncludeInfoFlags ) + bool bExcludeImportSubsets, sal_uInt32 nExcludeInfoFlags ) { - std::vector<int> aRet(::FillFromTextEncodingTable(bExcludeImportSubsets, nExcludeInfoFlags, nButIncludeInfoFlags)); + std::vector<int> aRet(::FillFromTextEncodingTable(bExcludeImportSubsets, nExcludeInfoFlags)); m_xControl->freeze(); for (auto j : aRet) { @@ -196,7 +195,7 @@ void SvxTextEncodingBox::FillFromTextEncodingTable( void SvxTextEncodingTreeView::FillFromTextEncodingTable( bool bExcludeImportSubsets, sal_uInt32 nExcludeInfoFlags ) { - std::vector<int> aRet(::FillFromTextEncodingTable(bExcludeImportSubsets, nExcludeInfoFlags, /*nButIncludeInfoFlags*/0)); + std::vector<int> aRet(::FillFromTextEncodingTable(bExcludeImportSubsets, nExcludeInfoFlags)); m_xControl->freeze(); for (auto j : aRet) { |