mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-22 01:59:02 +00:00
Make destructor virtual
Base classes with virtual methods should have a virtual destructor. See Scott Meyers, Effective C++ item 7: Declare destructors virtual in polymorphic base classes.
This commit is contained in:
parent
f3008c3079
commit
acb09a3efd
@ -75,6 +75,8 @@ struct EndTag
|
||||
{
|
||||
///
|
||||
explicit EndTag(std::string tag) : tag_(tag) {}
|
||||
///
|
||||
virtual ~EndTag() {}
|
||||
/// </tag_>
|
||||
virtual docstring writeEndTag() const;
|
||||
///
|
||||
|
Loading…
Reference in New Issue
Block a user