From c0c457246d25e7c64f65d1b37f976b7e804b10ab Mon Sep 17 00:00:00 2001 From: Guillem Jover Date: Tue, 31 Jul 2018 03:53:59 +0200 Subject: dselect: Use override attribute for virtual methods in derived classes C++11 makes it possible to use these attributes so that errors can be avoided, by helping the compiler know when we mean methods to override the ones from the parent class. Warned-by: cppcheck --- scripts/t/Dpkg_Shlibs/patterns.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'scripts') diff --git a/scripts/t/Dpkg_Shlibs/patterns.cpp b/scripts/t/Dpkg_Shlibs/patterns.cpp index 3beee43e0..8bfcb4dad 100644 --- a/scripts/t/Dpkg_Shlibs/patterns.cpp +++ b/scripts/t/Dpkg_Shlibs/patterns.cpp @@ -75,7 +75,7 @@ namespace NSB public: ClassD(); virtual ~ClassD(); - virtual void generate_vt(const char *) const; + virtual void generate_vt(const char *) const override; }; EXPORT(ClassD::ClassD()); -- cgit v1.2.3