#35 Fix compiler warning for non-virtual destructor

closed-accepted
nobody
None
5
2012-04-22
2012-04-22
No

code/IFCUtil.h:227: warning: 'class Assimp::IFC::Curve' has virtual functions but non-virtual destructor
code/IFCUtil.h:285: warning: 'class Assimp::IFC::BoundedCurve' has virtual functions but non-virtual destructor

Didn't do a patch for this because it's straightforward. In IFCUtil.h, there's a class called Curve. Add the virtual destructor to the public section:

...
public:
virtual ~Curve() {}

// check if a curve is closed
virtual bool IsClosed() const = 0;
...

Discussion

  • Alexander Gessler

    committed r1235.

     
  • Alexander Gessler

    • status: open --> closed-accepted
     

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks