extensions/source/scanner/sanedlg.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit ce811b8aa1d25d58fdbeae59768096699721cbc4
Author:     Jussi Suominen <[email protected]>
AuthorDate: Tue Oct 7 17:58:32 2025 +0300
Commit:     Ilmari Lauhakangas <[email protected]>
CommitDate: Tue Oct 21 16:55:21 2025 +0200

    tdf#147021 Use std::size() in place of SAL_N_ELEMENTS() macro
    
    Change-Id: I3cbf3b014c9c3c3f1211e63bf0c9e8f432e79511
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/192073
    Reviewed-by: Ilmari Lauhakangas <[email protected]>
    Tested-by: Jenkins
    Reviewed-by: Simon Chenery <[email protected]>

diff --git a/extensions/source/scanner/sanedlg.cxx 
b/extensions/source/scanner/sanedlg.cxx
index efcc03a85ebe..dea01e2fedf9 100644
--- a/extensions/source/scanner/sanedlg.cxx
+++ b/extensions/source/scanner/sanedlg.cxx
@@ -556,7 +556,7 @@ void SaneDlg::InitFields()
         {
             bool bIsSpecial = false;
             for( size_t n = 0; !bIsSpecial &&
-                     n < SAL_N_ELEMENTS(ppSpecialOptions); n++ )
+                     n < std::size(ppSpecialOptions); n++ )
             {
                 if( aOption == OUString::createFromAscii(ppSpecialOptions[n]) )
                     bIsSpecial=true;

Reply via email to