@@ -325,14 +325,14 @@ void SDW_dump_pages(thread_db* tdbb)
325
325
326
326
CCH_FETCH (tdbb, &window, LCK_read, pag_undefined);
327
327
328
- class Pio : public CryptoManager ::IOCallback
328
+ class Pio final : public CryptoManager::IOCallback
329
329
{
330
330
public:
331
- Pio (Shadow* s, BufferDesc* b)
331
+ Pio (Shadow* s, BufferDesc* b) noexcept
332
332
: shadow(s), bdb(b)
333
333
{ }
334
334
335
- bool callback (thread_db* tdbb, FbStatusVector* status, Ods::pag* page)
335
+ bool callback (thread_db* tdbb, FbStatusVector* status, Ods::pag* page) override
336
336
{
337
337
return CCH_write_all_shadows (tdbb, shadow, bdb, page, status, false );
338
338
}
@@ -441,7 +441,7 @@ void SDW_init(thread_db* tdbb, bool activate, bool delete_files)
441
441
// set up the lock block for synchronizing addition of new shadows
442
442
443
443
header_page* header; // for sizeof here, used later
444
- const USHORT key_length = sizeof (header->hdr_shadow_count );
444
+ constexpr USHORT key_length = sizeof (header->hdr_shadow_count );
445
445
Lock* lock = FB_NEW_RPT (*dbb->dbb_permanent , key_length)
446
446
Lock (tdbb, key_length, LCK_shadow, dbb, blocking_ast_shadowing);
447
447
dbb->dbb_shadow_lock = lock;
@@ -573,7 +573,7 @@ void SDW_notify(thread_db* tdbb)
573
573
}
574
574
575
575
576
- bool SDW_rollover_to_shadow (thread_db* tdbb, jrd_file* file, const bool inAst)
576
+ bool SDW_rollover_to_shadow (thread_db* tdbb, const jrd_file* file, const bool inAst)
577
577
{
578
578
/* *************************************
579
579
*
@@ -926,7 +926,7 @@ static void activate_shadow(thread_db* tdbb)
926
926
*
927
927
**************************************/
928
928
SET_TDBB (tdbb);
929
- Database* dbb = tdbb->getDatabase ();
929
+ const Database* dbb = tdbb->getDatabase ();
930
930
CHECK_DBB (dbb);
931
931
932
932
gds__log (" activating shadow file %s" , dbb->dbb_filename .c_str ());
@@ -1043,7 +1043,7 @@ static bool check_for_file(thread_db* tdbb, const SCHAR* name, USHORT length)
1043
1043
**************************************/
1044
1044
1045
1045
SET_TDBB (tdbb);
1046
- Database* dbb = tdbb->getDatabase ();
1046
+ const Database* dbb = tdbb->getDatabase ();
1047
1047
const Firebird::PathName path (name, length);
1048
1048
1049
1049
try {
0 commit comments