From: Konrad Rosenbaum Date: Sat, 24 Mar 2012 19:23:48 +0000 (+0100) Subject: avoid compiler warning over polymorphic destructor X-Git-Url: http://git.silmor.de/gitweb/?a=commitdiff_plain;h=017cd024ec6a09b02df55530cd52734412f31f2f;p=web%2Fkonrad%2Fsmoke.git avoid compiler warning over polymorphic destructor --- diff --git a/src/dialogs/checkdlg.h b/src/dialogs/checkdlg.h index 3f39295..5297bc7 100644 --- a/src/dialogs/checkdlg.h +++ b/src/dialogs/checkdlg.h @@ -26,6 +26,8 @@ class MCheckItem MCheckItem(QString key=QString(),bool isset=false,QString label=QString()) {m_key=key;m_set=isset;if(label!="")m_label=label;else m_label=m_key;} + virtual ~MCheckItem(){} + /**overwrite this to return a label that can be displayed*/ virtual QString label()const{return m_label;} /**overwrite this to return a key string that identifies the item (default implementation returns the label)*/