Fix cleanup of RouteDataPrivate
This commit is contained in:
parent
0034d6b59a
commit
e1def22193
2 changed files with 7 additions and 2 deletions
|
@ -862,6 +862,10 @@ RoutePath::RoutePath(const flightgear::FlightPlan* fp) :
|
|||
commonInit();
|
||||
}
|
||||
|
||||
RoutePath::~RoutePath()
|
||||
{
|
||||
}
|
||||
|
||||
void RoutePath::commonInit()
|
||||
{
|
||||
d->initPerfData();
|
||||
|
|
|
@ -38,7 +38,8 @@ class RoutePath
|
|||
{
|
||||
public:
|
||||
RoutePath(const flightgear::FlightPlan* fp);
|
||||
|
||||
~RoutePath();
|
||||
|
||||
SGGeodVec pathForIndex(int index) const;
|
||||
|
||||
SGGeod positionForIndex(int index) const;
|
||||
|
@ -64,7 +65,7 @@ private:
|
|||
void interpolateGreatCircle(const SGGeod& aFrom, const SGGeod& aTo, SGGeodVec& r) const;
|
||||
|
||||
|
||||
RoutePathPrivate* d;
|
||||
std::auto_ptr<RoutePathPrivate> d;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Add table
Reference in a new issue