diff options
author | Khaled Hosny <khaled@aliftype.com> | 2022-12-03 19:42:31 +0200 |
---|---|---|
committer | خالد حسني <khaled@aliftype.com> | 2022-12-04 09:10:58 +0000 |
commit | b997eb78c392c1e9c89c24644cf86d4bca041d54 (patch) | |
tree | a8934ed70bdac592a2d18aa3c0a2667e0fb72d7e /cui | |
parent | fcba85d2ebb54692e0730610026b9b51feb67716 (diff) |
Use better variable names
Change-Id: I99462a1f598affca1fe69908d3091af5fa219829
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/143618
Tested-by: Jenkins
Reviewed-by: خالد حسني <khaled@aliftype.com>
Diffstat (limited to 'cui')
-rw-r--r-- | cui/source/dialogs/FontFeaturesDialog.cxx | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/cui/source/dialogs/FontFeaturesDialog.cxx b/cui/source/dialogs/FontFeaturesDialog.cxx index f618d0a59ef3..ab6063c9b6c3 100644 --- a/cui/source/dialogs/FontFeaturesDialog.cxx +++ b/cui/source/dialogs/FontFeaturesDialog.cxx @@ -94,7 +94,7 @@ int FontFeaturesDialog::fillGrid(std::vector<vcl::font::Feature> const& rFontFea vcl::font::FeatureParser aParser(m_sFontName); auto aExistingFeatures = aParser.getFeaturesMap(); - sal_Int32 i = 0, j = 0, k = 0, n = 0; + sal_Int32 nIdx, nStylisticSets(0), nCharacterVariants(0), nOtherFeatures(0); for (vcl::font::Feature const& rFontFeature : rFontFeatures) { sal_uInt32 nFontFeatureCode = rFontFeature.m_nCode; @@ -107,19 +107,19 @@ int FontFeaturesDialog::fillGrid(std::vector<vcl::font::Feature> const& rFontFea if (rFontFeature.isStylisticSet()) { - n = j++; + nIdx = nStylisticSets++; m_xStylisticSetsBox->set_visible(true); m_aFeatureItems.emplace_back(m_xStylisticSetsGrid.get()); } else if (rFontFeature.isCharacterVariant()) { - n = k++; + nIdx = nCharacterVariants++; m_xCharacterVariantsBox->set_visible(true); m_aFeatureItems.emplace_back(m_xCharacterVariantsGrid.get()); } else { - n = i++; + nIdx = nOtherFeatures++; m_xContentBox->set_visible(true); m_aFeatureItems.emplace_back(m_xContentGrid.get()); } @@ -134,8 +134,8 @@ int FontFeaturesDialog::fillGrid(std::vector<vcl::font::Feature> const& rFontFea aCurrentItem.m_aFeatureCode = nFontFeatureCode; aCurrentItem.m_nDefault = aDefinition.getDefault(); - sal_Int32 nGridPositionX = (n % 2) * 2; - sal_Int32 nGridPositionY = n / 2; + sal_Int32 nGridPositionX = (nIdx % 2) * 2; + sal_Int32 nGridPositionY = nIdx / 2; aCurrentItem.m_xContainer->set_grid_left_attach(nGridPositionX); aCurrentItem.m_xContainer->set_grid_top_attach(nGridPositionY); |