@@ -325,14 +325,14 @@ void SDW_dump_pages(thread_db* tdbb)
325325
326326 CCH_FETCH (tdbb, &window, LCK_read, pag_undefined);
327327
328- class Pio : public CryptoManager ::IOCallback
328+ class Pio final : public CryptoManager::IOCallback
329329 {
330330 public:
331- Pio (Shadow* s, BufferDesc* b)
331+ Pio (Shadow* s, BufferDesc* b) noexcept
332332 : shadow(s), bdb(b)
333333 { }
334334
335- bool callback (thread_db* tdbb, FbStatusVector* status, Ods::pag* page)
335+ bool callback (thread_db* tdbb, FbStatusVector* status, Ods::pag* page) override
336336 {
337337 return CCH_write_all_shadows (tdbb, shadow, bdb, page, status, false );
338338 }
@@ -441,7 +441,7 @@ void SDW_init(thread_db* tdbb, bool activate, bool delete_files)
441441 // set up the lock block for synchronizing addition of new shadows
442442
443443 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 );
445445 Lock* lock = FB_NEW_RPT (*dbb->dbb_permanent , key_length)
446446 Lock (tdbb, key_length, LCK_shadow, dbb, blocking_ast_shadowing);
447447 dbb->dbb_shadow_lock = lock;
@@ -573,7 +573,7 @@ void SDW_notify(thread_db* tdbb)
573573}
574574
575575
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)
577577{
578578/* *************************************
579579 *
@@ -926,7 +926,7 @@ static void activate_shadow(thread_db* tdbb)
926926 *
927927 **************************************/
928928 SET_TDBB (tdbb);
929- Database* dbb = tdbb->getDatabase ();
929+ const Database* dbb = tdbb->getDatabase ();
930930 CHECK_DBB (dbb);
931931
932932 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)
10431043 **************************************/
10441044
10451045 SET_TDBB (tdbb);
1046- Database* dbb = tdbb->getDatabase ();
1046+ const Database* dbb = tdbb->getDatabase ();
10471047 const Firebird::PathName path (name, length);
10481048
10491049 try {
0 commit comments