make mnMaxAllowedBackups constexpr

Change-Id: I67ba3481ed5b43c370d1cadc01e8bbd06a880512
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/187586
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
This commit is contained in:
Caolán McNamara
2025-07-09 16:52:34 +01:00
parent fa4721b739
commit cf82a96385
2 changed files with 1 additions and 2 deletions

View File

@ -1450,7 +1450,6 @@ namespace
namespace comphelper
{
sal_uInt16 BackupFileHelper::mnMaxAllowedBackups = 10;
bool BackupFileHelper::mbExitWasCalled = false;
bool BackupFileHelper::mbSafeModeDirExists = false;
OUString BackupFileHelper::maInitialBaseURL;

View File

@ -83,7 +83,7 @@ namespace comphelper
static bool mbSafeModeDirExists;
// internal upper limit (max) of allowed backups
static sal_uInt16 mnMaxAllowedBackups;
static constexpr sal_uInt16 mnMaxAllowedBackups = 10;
// path to User's configuration directory and derived strings
static OUString maInitialBaseURL;