From 8c760266c8c736bff62055c008ab74d78f3ed82a Mon Sep 17 00:00:00 2001 From: David Kalnischkies Date: Tue, 19 Nov 2024 22:42:44 +0000 Subject: Tag hidden acquire classes as final for devirtualization MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit gcc reports `warning: Declaring type ‘class X’ final would enable devirtualization of Y calls [-Wsuggest-final-types]`. Not that this would massively improve performance, but it shouldn't hurt telling the compiler what is obvious for a human. --- methods/store.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'methods/store.cc') diff --git a/methods/store.cc b/methods/store.cc index 23d6b43d0..ed2eb3fe1 100644 --- a/methods/store.cc +++ b/methods/store.cc @@ -31,7 +31,7 @@ #include /*}}}*/ -class StoreMethod : public aptMethod +class StoreMethod final : public aptMethod { virtual bool Fetch(FetchItem *Itm) APT_OVERRIDE; -- cgit v1.2.3-70-g09d2