desktop/source/migration/services/wordbookmigration.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 7e4acdc2f70d46b73424e38e876d559fd6ab7a6d
Author:     Simon Chenery <simon_chen...@yahoo.com>
AuthorDate: Wed Feb 19 22:03:17 2025 +0100
Commit:     David Gilbert <freedesk...@treblig.org>
CommitDate: Mon Mar 3 20:02:00 2025 +0100

    tdf#145614 Convert #define MAX_HEADER_LENGTH to constexpr
    
    Change-Id: Ie61197b62e8cc7d329da04fdf9ed8d2f1c190854
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/181920
    Tested-by: Jenkins
    Reviewed-by: David Gilbert <freedesk...@treblig.org>

diff --git a/desktop/source/migration/services/wordbookmigration.cxx 
b/desktop/source/migration/services/wordbookmigration.cxx
index 02e314dfe7e7..7938610a01ae 100644
--- a/desktop/source/migration/services/wordbookmigration.cxx
+++ b/desktop/source/migration/services/wordbookmigration.cxx
@@ -89,9 +89,9 @@ namespace migration
         }
     }
 
-#define MAX_HEADER_LENGTH 16
 static bool IsUserWordbook( const OUString& rFile )
 {
+    constexpr sal_uInt16 MAX_HEADER_LENGTH = 16;
     bool bRet = false;
     std::unique_ptr<SvStream> pStream = ::utl::UcbStreamHelper::CreateStream( 
rFile, StreamMode::STD_READ );
     if ( pStream && !pStream->GetError() )

Reply via email to