@@ -39,7 +39,7 @@ namespace Burp
3939{
4040
4141// IO buffer should fit at least one blob segment, two is better.
42- const FB_SIZE_T MIN_IO_BUFFER_SIZE = 128 * 1024 ;
42+ constexpr FB_SIZE_T MIN_IO_BUFFER_SIZE = 128 * 1024 ;
4343
4444// / class IOBuffer
4545
@@ -826,10 +826,10 @@ void RestoreRelationTask::verbRecs(FB_UINT64& records, bool total)
826826 if (records < verb && !total)
827827 return ;
828828
829- FB_UINT64 newRecs = m_records.exchangeAdd (records) + records;
829+ const FB_UINT64 newRecs = m_records.exchangeAdd (records) + records;
830830 records = 0 ;
831831
832- FB_UINT64 newVerb = (newRecs / m_masterGbl->verboseInterval ) * m_masterGbl->verboseInterval ;
832+ const FB_UINT64 newVerb = (newRecs / m_masterGbl->verboseInterval ) * m_masterGbl->verboseInterval ;
833833 if (newVerb > m_verbRecs)
834834 {
835835 m_verbRecs = newVerb;
@@ -993,7 +993,7 @@ IOBuffer* RestoreRelationTask::getCleanBuffer()
993993
994994 if (m_cleanBuffers.hasData ())
995995 {
996- const FB_SIZE_T idx = 0 ;
996+ constexpr FB_SIZE_T idx = 0 ;
997997 buf = m_cleanBuffers[idx];
998998 m_cleanBuffers.remove (idx);
999999 }
@@ -1094,7 +1094,7 @@ IOBuffer* RestoreRelationTask::getDirtyBuffer()
10941094 return NULL ;
10951095 }
10961096
1097- const FB_SIZE_T idx = 0 ;
1097+ constexpr FB_SIZE_T idx = 0 ;
10981098 buf = m_dirtyBuffers[idx];
10991099 m_dirtyBuffers.remove (idx);
11001100 }
@@ -1121,7 +1121,7 @@ RestoreRelationTask::Item::EnsureUnlockBuffer::~EnsureUnlockBuffer()
11211121
11221122void RestoreRelationTask::ExcReadDone::stuffByException (StaticStatusVector& status) const noexcept
11231123{
1124- ISC_STATUS sv[] = {isc_arg_gds, isc_random, isc_arg_string,
1124+ const ISC_STATUS sv[] = {isc_arg_gds, isc_random, isc_arg_string,
11251125 (ISC_STATUS)(IPTR) " Unexpected call to RestoreRelationTask::ExcReadDone::stuffException()" , isc_arg_end};
11261126
11271127 try
0 commit comments