diff --git a/src/actions.hpp b/src/actions.hpp index 511eaf45..593122a5 100644 --- a/src/actions.hpp +++ b/src/actions.hpp @@ -73,6 +73,8 @@ namespace Action { public: //! Shortcut for an auto pointer. typedef std::auto_ptr AutoPtr; + //! Virtual destructor. + virtual ~Task() {} //! Virtual copy construction. AutoPtr clone() const; /*! diff --git a/src/exiv2.cpp b/src/exiv2.cpp index 65b2938d..98d0e3df 100644 --- a/src/exiv2.cpp +++ b/src/exiv2.cpp @@ -55,10 +55,10 @@ namespace { //! List of all command identifiers and corresponding strings static const CmdIdAndString cmdIdAndString[] = { - add, "add", - set, "set", - del, "del", - invalidCmdId, "invalidCmd" // End of list marker + { add, "add" }, + { set, "set" }, + { del, "del" }, + { invalidCmdId, "invalidCmd" } // End of list marker }; // Return a command Id for a command string