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/copy.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'methods/copy.cc') diff --git a/methods/copy.cc b/methods/copy.cc index 82eed150c..44205e4cd 100644 --- a/methods/copy.cc +++ b/methods/copy.cc @@ -24,7 +24,7 @@ #include /*}}}*/ -class CopyMethod : public aptMethod +class CopyMethod final : public aptMethod { virtual bool Fetch(FetchItem *Itm) APT_OVERRIDE; -- cgit v1.2.3-70-g09d2