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