sc/source/filter/excel/xlstyle.cxx |    8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

New commits:
commit 58d2abd2ed85beed48a7677f2b186914c6f2a6c9
Author:     Sujatro Bhadra <sujatrobha...@gmail.com>
AuthorDate: Mon Mar 4 22:10:15 2024 +0530
Commit:     Ilmari Lauhakangas <ilmari.lauhakan...@libreoffice.org>
CommitDate: Tue Mar 5 20:40:15 2024 +0100

    tdf#147021 Use std::size() instead of SAL_N_ELEMENTS() macro
    
    Change-Id: I6174cf1b689136e1302cffb2b26735dc33678e08
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/164394
    Tested-by: Jenkins
    Tested-by: Ilmari Lauhakangas <ilmari.lauhakan...@libreoffice.org>
    Reviewed-by: Ilmari Lauhakangas <ilmari.lauhakan...@libreoffice.org>

diff --git a/sc/source/filter/excel/xlstyle.cxx 
b/sc/source/filter/excel/xlstyle.cxx
index 5c494a7e60da..0ba44a00bc83 100644
--- a/sc/source/filter/excel/xlstyle.cxx
+++ b/sc/source/filter/excel/xlstyle.cxx
@@ -117,20 +117,20 @@ XclDefaultPalette::XclDefaultPalette( const XclRoot& 
rRoot ) :
     {
         case EXC_BIFF2:
             mpnColorTable = spnDefColorTable2;
-            mnTableSize = SAL_N_ELEMENTS( spnDefColorTable2 );
+            mnTableSize = std::size( spnDefColorTable2 );
         break;
         case EXC_BIFF3:
         case EXC_BIFF4:
             mpnColorTable = spnDefColorTable3;
-            mnTableSize = SAL_N_ELEMENTS( spnDefColorTable3 );
+            mnTableSize = std::size( spnDefColorTable3 );
         break;
         case EXC_BIFF5:
             mpnColorTable = spnDefColorTable5;
-            mnTableSize = SAL_N_ELEMENTS( spnDefColorTable5 );
+            mnTableSize = std::size( spnDefColorTable5 );
         break;
         case EXC_BIFF8:
             mpnColorTable = spnDefColorTable8;
-            mnTableSize = SAL_N_ELEMENTS( spnDefColorTable8 );
+            mnTableSize = std::size( spnDefColorTable8 );
         break;
         default:
             DBG_ERROR_BIFF();

Reply via email to