Fixed compiler warnings from g++-4

v0.27.3
Andreas Huggel 20 years ago
parent 60f11c557d
commit 8041d703be

@ -73,6 +73,8 @@ namespace Action {
public: public:
//! Shortcut for an auto pointer. //! Shortcut for an auto pointer.
typedef std::auto_ptr<Task> AutoPtr; typedef std::auto_ptr<Task> AutoPtr;
//! Virtual destructor.
virtual ~Task() {}
//! Virtual copy construction. //! Virtual copy construction.
AutoPtr clone() const; AutoPtr clone() const;
/*! /*!

@ -55,10 +55,10 @@ namespace {
//! List of all command identifiers and corresponding strings //! List of all command identifiers and corresponding strings
static const CmdIdAndString cmdIdAndString[] = { static const CmdIdAndString cmdIdAndString[] = {
add, "add", { add, "add" },
set, "set", { set, "set" },
del, "del", { del, "del" },
invalidCmdId, "invalidCmd" // End of list marker { invalidCmdId, "invalidCmd" } // End of list marker
}; };
// Return a command Id for a command string // Return a command Id for a command string

Loading…
Cancel
Save