Browse Source

[master] Added virtual destructor.

Fixes GCC 4.1.3 warning about the class having virtual functions and
non-virtual constructor. Okayed on jabber.
Marcin Siodelski 12 years ago
parent
commit
b3419fdfa0
1 changed files with 4 additions and 0 deletions
  1. 4 0
      tests/tools/perfdhcp/test_control.h

+ 4 - 0
tests/tools/perfdhcp/test_control.h

@@ -141,6 +141,10 @@ public:
     /// (e.g. sequencial or based on random function).
     class NumberGenerator {
     public:
+
+        /// \brief Destructor.
+        virtual ~NumberGenerator() { }
+
         /// \brief Generate number.
         ///
         /// \return Generate number.