You've already forked libopenshot
mirror of
https://github.com/OpenShot/libopenshot.git
synced 2026-03-02 08:53:52 -08:00
Removing throw statements from header files (thanks Peter)
This commit is contained in:
@@ -29,14 +29,14 @@
|
||||
|
||||
using namespace openshot;
|
||||
|
||||
ImageReader::ImageReader(string path) throw(InvalidFile) : path(path), is_open(false)
|
||||
ImageReader::ImageReader(string path) : path(path), is_open(false)
|
||||
{
|
||||
// Open and Close the reader, to populate it's attributes (such as height, width, etc...)
|
||||
Open();
|
||||
Close();
|
||||
}
|
||||
|
||||
ImageReader::ImageReader(string path, bool inspect_reader) throw(InvalidFile) : path(path), is_open(false)
|
||||
ImageReader::ImageReader(string path, bool inspect_reader) : path(path), is_open(false)
|
||||
{
|
||||
// Open and Close the reader, to populate it's attributes (such as height, width, etc...)
|
||||
if (inspect_reader) {
|
||||
@@ -46,7 +46,7 @@ ImageReader::ImageReader(string path, bool inspect_reader) throw(InvalidFile) :
|
||||
}
|
||||
|
||||
// Open image file
|
||||
void ImageReader::Open() throw(InvalidFile)
|
||||
void ImageReader::Open()
|
||||
{
|
||||
// Open reader if not already open
|
||||
if (!is_open)
|
||||
@@ -113,7 +113,7 @@ void ImageReader::Close()
|
||||
}
|
||||
|
||||
// Get an openshot::Frame object for a specific frame number of this reader.
|
||||
std::shared_ptr<Frame> ImageReader::GetFrame(int64_t requested_frame) throw(ReaderClosed)
|
||||
std::shared_ptr<Frame> ImageReader::GetFrame(int64_t requested_frame)
|
||||
{
|
||||
// Check for open reader (or throw exception)
|
||||
if (!is_open)
|
||||
@@ -149,7 +149,7 @@ Json::Value ImageReader::JsonValue() {
|
||||
}
|
||||
|
||||
// Load JSON string into this object
|
||||
void ImageReader::SetJson(string value) throw(InvalidJSON) {
|
||||
void ImageReader::SetJson(string value) {
|
||||
|
||||
// Parse JSON string into JSON objects
|
||||
Json::Value root;
|
||||
@@ -172,7 +172,7 @@ void ImageReader::SetJson(string value) throw(InvalidJSON) {
|
||||
}
|
||||
|
||||
// Load Json::JsonValue into this object
|
||||
void ImageReader::SetJsonValue(Json::Value root) throw(InvalidFile) {
|
||||
void ImageReader::SetJsonValue(Json::Value root) {
|
||||
|
||||
// Set parent data
|
||||
ReaderBase::SetJsonValue(root);
|
||||
|
||||
Reference in New Issue
Block a user