[haiku-bugs] Re: [Haiku] #10220: Added virtual descriptor to DoublyLinkedListImpl, PackageSymlink and PackageDirectory

  • From: "bonefish" <trac@xxxxxxxxxxxx>
  • Date: Mon, 18 Nov 2013 21:08:02 -0000

#10220: Added virtual descriptor to DoublyLinkedListImpl, PackageSymlink and
PackageDirectory
-------------------------+----------------------------
   Reporter:  Ezodev     |      Owner:  nobody
       Type:  bug        |     Status:  closed
   Priority:  normal     |  Milestone:  R1
  Component:  - General  |    Version:  R1/Development
 Resolution:  invalid    |   Keywords:  gci2013
 Blocked By:             |   Blocking:
Has a Patch:  1          |   Platform:  All
-------------------------+----------------------------
Changes (by bonefish):

 * status:  new => closed
 * resolution:   => invalid


Comment:

 DoublyLinkedListImpl intentionally doesn't have a virtual destructor,
 since it shall be usable also for classes that aren't supposed to be
 polymorphic.

 The missing virtual keyword for the PackageNode destructor has been added
 in 6ef9697b0028d73bf381f4b2dde87dd407c552bc. Derived classes automatically
 inherit the virtual destructor, so theirs doesn't need to be marked
 anymore.

--
Ticket URL: <http://dev.haiku-os.org/ticket/10220#comment:2>
Haiku <http://dev.haiku-os.org>
Haiku - the operating system.

Other related posts: