Parcourir la source

Add a virtual destructor

To fix compilation.
Michal 'vorner' Vaner il y a 12 ans
Parent
commit
c9ba8373e2
1 fichiers modifiés avec 3 ajouts et 0 suppressions
  1. 3 0
      src/lib/datasrc/memory/zone_writer.h

+ 3 - 0
src/lib/datasrc/memory/zone_writer.h

@@ -37,6 +37,9 @@ namespace memory {
 /// (how to achieve that may be implementation dependant).
 class ZoneWriter {
 public:
+    /// \brief Virtual destructor.
+    virtual ~ZoneWriter() {};
+
     /// \brief Get the zone data into memory.
     ///
     /// This is the part that does the time-consuming loading into the memory.