diff --git a/source/maths/NUSpline.cpp b/source/maths/NUSpline.cpp index 95373502a8..0024f229c1 100644 --- a/source/maths/NUSpline.cpp +++ b/source/maths/NUSpline.cpp @@ -1,4 +1,4 @@ -/* Copyright (C) 2015 Wildfire Games. +/* Copyright (C) 2016 Wildfire Games. * This file is part of 0 A.D. * * 0 A.D. is free software: you can redistribute it and/or modify @@ -49,6 +49,8 @@ RNSpline::RNSpline() { } +RNSpline::~RNSpline() = default; + // adds node and updates segment length void RNSpline::AddNode(const CFixedVector3D& pos) { @@ -154,6 +156,8 @@ CVector3D RNSpline::GetEndVelocity(int index) /*********************************** S N S **************************************************/ +SNSpline::~SNSpline() = default; + void SNSpline::BuildSpline() { RNSpline::BuildSpline(); @@ -183,6 +187,8 @@ void SNSpline::Smooth() /*********************************** T N S **************************************************/ +TNSpline::~TNSpline() = default; + // as with RNSpline but use timePeriod in place of actual node spacing // ie time period is time from last node to this node void TNSpline::AddNode(const CFixedVector3D& pos, const CFixedVector3D& rotation, fixed timePeriod) diff --git a/source/maths/NUSpline.h b/source/maths/NUSpline.h index d465b7b344..a9ae383390 100644 --- a/source/maths/NUSpline.h +++ b/source/maths/NUSpline.h @@ -1,4 +1,4 @@ -/* Copyright (C) 2015 Wildfire Games. +/* Copyright (C) 2016 Wildfire Games. * This file is part of 0 A.D. * * 0 A.D. is free software: you can redistribute it and/or modify @@ -52,7 +52,7 @@ class RNSpline public: RNSpline(); - virtual ~RNSpline() = default; + virtual ~RNSpline(); void AddNode(const CFixedVector3D& pos); void BuildSpline(); @@ -78,7 +78,7 @@ protected: class SNSpline : public RNSpline { public: - virtual ~SNSpline() = default; + virtual ~SNSpline(); void BuildSpline(); void Smooth(); @@ -91,7 +91,7 @@ public: class TNSpline : public SNSpline { public: - virtual ~TNSpline() = default; + virtual ~TNSpline(); void AddNode(const CFixedVector3D& pos, const CFixedVector3D& rotation, fixed timePeriod); void InsertNode(const int index, const CFixedVector3D& pos, const CFixedVector3D& rotation, fixed timePeriod);