]> git.lyx.org Git - features.git/commitdiff
Make destructors virtual in base classes and only there.
authorVincent van Ravesteijn <vfr@lyx.org>
Mon, 3 May 2010 21:43:46 +0000 (21:43 +0000)
committerVincent van Ravesteijn <vfr@lyx.org>
Mon, 3 May 2010 21:43:46 +0000 (21:43 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34360 a592a061-630c-0410-9148-cb99ea01b6c8

src/insets/InsetBibitem.h
src/insets/InsetCollapsable.h
src/insets/InsetCommand.h

index 4c298c32d9e94f2d39f748d8f00b5ae56041dc38..200630355f7cfd5e319b616943a74d985f5f737b 100644 (file)
@@ -34,7 +34,7 @@ public:
        ///
        InsetBibitem(Buffer *, InsetCommandParams const &);
        ///
-       virtual ~InsetBibitem();
+       ~InsetBibitem();
        ///
        static ParamInfo const & findInfo(std::string const &);
        ///
index 0ec354be7460e7e4b8c545e84a8a7e0401042516..3bdac339980f9c3b15dbdc4aee18957334fb28f8 100644 (file)
@@ -37,7 +37,7 @@ public:
        ///
        InsetCollapsable(InsetCollapsable const & rhs);
        ///
-       ~InsetCollapsable();
+       virtual ~InsetCollapsable();
        ///
        InsetCollapsable * asInsetCollapsable() { return this; }
        ///
index 5952b33dae1ffbb11b2405c573ef1a424d370290..77bf4cd664447ade5ccf4bd80fdb00ad8aec5d9c 100644 (file)
@@ -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,