From: Vincent van Ravesteijn Date: Mon, 3 May 2010 21:43:46 +0000 (+0000) Subject: Make destructors virtual in base classes and only there. X-Git-Tag: 2.0.0~3300 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=cea7948698c7edac7c983f73cc4d29d8c36d0f7c;p=features.git Make destructors virtual in base classes and only there. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34360 a592a061-630c-0410-9148-cb99ea01b6c8 --- diff --git a/src/insets/InsetBibitem.h b/src/insets/InsetBibitem.h index 4c298c32d9..200630355f 100644 --- a/src/insets/InsetBibitem.h +++ b/src/insets/InsetBibitem.h @@ -34,7 +34,7 @@ public: /// InsetBibitem(Buffer *, InsetCommandParams const &); /// - virtual ~InsetBibitem(); + ~InsetBibitem(); /// static ParamInfo const & findInfo(std::string const &); /// diff --git a/src/insets/InsetCollapsable.h b/src/insets/InsetCollapsable.h index 0ec354be74..3bdac33998 100644 --- a/src/insets/InsetCollapsable.h +++ b/src/insets/InsetCollapsable.h @@ -37,7 +37,7 @@ public: /// InsetCollapsable(InsetCollapsable const & rhs); /// - ~InsetCollapsable(); + virtual ~InsetCollapsable(); /// InsetCollapsable * asInsetCollapsable() { return this; } /// diff --git a/src/insets/InsetCommand.h b/src/insets/InsetCommand.h index 5952b33dae..77bf4cd664 100644 --- a/src/insets/InsetCommand.h +++ b/src/insets/InsetCommand.h @@ -40,7 +40,7 @@ public: /// InsetCommand(InsetCommand const & rhs); /// - ~InsetCommand(); + virtual ~InsetCommand(); /// returns true if params are successfully read static bool string2params(std::string const &, std::string const & name,