diff options
author | Guillem Jover <guillem@debian.org> | 2018-07-31 03:53:59 +0200 |
---|---|---|
committer | Guillem Jover <guillem@debian.org> | 2018-08-01 06:00:39 +0200 |
commit | c0c457246d25e7c64f65d1b37f976b7e804b10ab (patch) | |
tree | af766dec7ccbd3cfe258448f0d838129d2c3900f /scripts/t/Dpkg_Shlibs/patterns.cpp | |
parent | 3d4be1a816d1d3b9c3068d9c3008e0ee093034f3 (diff) | |
download | dpkg-c0c457246d25e7c64f65d1b37f976b7e804b10ab.tar.gz |
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
Diffstat (limited to 'scripts/t/Dpkg_Shlibs/patterns.cpp')
-rw-r--r-- | scripts/t/Dpkg_Shlibs/patterns.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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()); |