You've already forked libopenshot
mirror of
https://github.com/OpenShot/libopenshot.git
synced 2026-03-02 08:53:52 -08:00
Add virtual destructor for abstract classes
This commit is contained in:
@@ -109,6 +109,7 @@ namespace openshot {
|
||||
virtual void SetJson(string value) = 0; ///< Load JSON string into this object
|
||||
virtual Json::Value JsonValue() = 0; ///< Generate Json::JsonValue for this object
|
||||
virtual void SetJsonValue(Json::Value root) = 0; ///< Load Json::JsonValue into this object
|
||||
virtual ~CacheBase() = default;
|
||||
|
||||
};
|
||||
|
||||
|
||||
@@ -101,6 +101,7 @@ namespace openshot {
|
||||
/// of all properties at any time)
|
||||
virtual string PropertiesJSON(int64_t requested_frame) = 0;
|
||||
|
||||
virtual ~ClipBase() = default;
|
||||
};
|
||||
|
||||
|
||||
|
||||
@@ -105,6 +105,7 @@ namespace openshot
|
||||
|
||||
/// Set the order that this effect should be executed.
|
||||
void Order(int new_order) { order = new_order; }
|
||||
virtual ~EffectBase() = default;
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
@@ -104,6 +104,7 @@ namespace openshot
|
||||
/// Set the Volume (1.0 = normal volume, <1.0 = quieter, >1.0 louder)
|
||||
virtual void Volume(float new_volume) = 0;
|
||||
|
||||
virtual ~PlayerBase() = default;
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
@@ -147,6 +147,8 @@ namespace openshot
|
||||
|
||||
/// Open the reader (and start consuming resources, such as images or video files)
|
||||
virtual void Open() = 0;
|
||||
|
||||
virtual ~ReaderBase() = default;
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
@@ -116,6 +116,8 @@ namespace openshot
|
||||
|
||||
/// Open the writer (and start initializing streams)
|
||||
virtual void Open() = 0;
|
||||
|
||||
virtual ~WriterBase() = default;
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user