Add virtual destructor for abstract classes

This commit is contained in:
Sergey Parfenyuk
2019-04-27 12:37:24 +02:00
parent aa85c1bbf9
commit 49831a24b0
6 changed files with 8 additions and 0 deletions

View File

@@ -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;
};

View File

@@ -101,6 +101,7 @@ namespace openshot {
/// of all properties at any time)
virtual string PropertiesJSON(int64_t requested_frame) = 0;
virtual ~ClipBase() = default;
};

View File

@@ -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;
};
}

View File

@@ -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;
};
}

View File

@@ -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;
};
}

View File

@@ -116,6 +116,8 @@ namespace openshot
/// Open the writer (and start initializing streams)
virtual void Open() = 0;
virtual ~WriterBase() = default;
};
}