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 pStream = ::utl::UcbStreamHelper::CreateStream( rFile, StreamMode::STD_READ ); if ( pStream && !pStream->GetError() )