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 <freedesktop@treblig.org>
This commit is contained in:
committed by
David Gilbert
parent
eb8d18eb6f
commit
7e4acdc2f7
@@ -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() )
|
||||
|
||||
Reference in New Issue
Block a user