diff --git a/src/TrackedObjectBase.cpp b/src/TrackedObjectBase.cpp index 0a33683f..b1f5aae0 100644 --- a/src/TrackedObjectBase.cpp +++ b/src/TrackedObjectBase.cpp @@ -55,4 +55,4 @@ namespace openshot // return JsonValue return new_choice; } -} // namespace openshot \ No newline at end of file +} // namespace openshot diff --git a/src/TrackedObjectBase.h b/src/TrackedObjectBase.h index 0ab88130..110c277c 100644 --- a/src/TrackedObjectBase.h +++ b/src/TrackedObjectBase.h @@ -47,7 +47,7 @@ namespace openshot { * @brief This abstract class is the base class of all Tracked Objects. * * A Tracked Object is an object or a desired set of pixels in a digital image - * which properties (such as position, width and height) can be detected and + * which properties (such as position, width and height) can be detected and * predicted along the frames of a clip. */ class TrackedObjectBase { @@ -58,7 +58,7 @@ namespace openshot { ClipBase* parentClip; public: - + Keyframe visible; Keyframe draw_box; @@ -68,6 +68,9 @@ namespace openshot { /// Constructor which takes an object ID TrackedObjectBase(std::string _id); + /// Destructor + virtual ~TrackedObjectBase() = default; + /// Get the id of this object std::string Id() const { return id; } /// Set the id of this object @@ -104,6 +107,6 @@ namespace openshot { /// Generate JSON choice for a property (dropdown properties) Json::Value add_property_choice_json(std::string name, int value, int selected_value) const; }; -} // Namespace openshot +} // Namespace openshot #endif