cui/source/tabpages/align.cxx |    8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

New commits:
commit 1fe5e87e77423196de337a7e91a2cb089b2eeaa2
Author:     Mike Kaganski <mike.kagan...@collabora.com>
AuthorDate: Mon Jun 9 07:07:37 2025 +0200
Commit:     Mike Kaganski <mike.kagan...@collabora.com>
CommitDate: Mon Jun 9 08:41:00 2025 +0200

    Simplify a templatized function
    
    Change-Id: Ie10b1d4ec99962f4afd890cc3896013f0ded7599
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/186274
    Tested-by: Jenkins
    Reviewed-by: Mike Kaganski <mike.kagan...@collabora.com>

diff --git a/cui/source/tabpages/align.cxx b/cui/source/tabpages/align.cxx
index 33ea17f11f4a..0f4713c33480 100644
--- a/cui/source/tabpages/align.cxx
+++ b/cui/source/tabpages/align.cxx
@@ -54,7 +54,7 @@ const WhichRangesContainer AlignmentTabPage::s_pRanges(
 
 namespace {
 
-template<typename JustContainerType, typename JustEnumType>
+template<typename JustEnumType>
 void lcl_MaybeResetAlignToDistro(
     weld::ComboBox& rLB, sal_uInt16 nListId, const SfxItemSet& rCoreAttrs, 
TypedWhichId<SfxEnumItemInterface> nWhichAlign, 
TypedWhichId<SfxEnumItemInterface> nWhichJM, JustEnumType eBlock)
 {
@@ -63,7 +63,7 @@ void lcl_MaybeResetAlignToDistro(
         // alignment not set.
         return;
 
-    JustContainerType eVal = static_cast<JustContainerType>(p->GetEnumValue());
+    JustEnumType eVal = static_cast<JustEnumType>(p->GetEnumValue());
     if (eVal != eBlock)
         // alignment is not 'justify'.  No need to go further.
         return;
@@ -632,7 +632,7 @@ void AlignmentTabPage::Reset(const SfxItemSet* pCoreAttrs)
     else
     {
         // feature known, e.g. calc
-        lcl_MaybeResetAlignToDistro<SvxCellHorJustify, SvxCellHorJustify>(
+        lcl_MaybeResetAlignToDistro(
             *m_xLbHorAlign, ALIGNDLG_HORALIGN_DISTRIBUTED, *pCoreAttrs,
             
TypedWhichId<SfxEnumItemInterface>(GetWhich(SID_ATTR_ALIGN_HOR_JUSTIFY)), 
nHorJustifyMethodWhich,
             SvxCellHorJustify::Block);
@@ -650,7 +650,7 @@ void AlignmentTabPage::Reset(const SfxItemSet* pCoreAttrs)
     else
     {
         // feature known, e.g. calc
-        lcl_MaybeResetAlignToDistro<SvxCellVerJustify, SvxCellVerJustify>(
+        lcl_MaybeResetAlignToDistro(
             *m_xLbVerAlign, ALIGNDLG_VERALIGN_DISTRIBUTED, *pCoreAttrs,
             
TypedWhichId<SfxEnumItemInterface>(GetWhich(SID_ATTR_ALIGN_VER_JUSTIFY)), 
nVerJustifyMethodWhich,
             SvxCellVerJustify::Block);

Reply via email to