ImageReader: Consolidate ctors using default arg

This commit is contained in:
FeRD (Frank Dana)
2020-10-17 05:56:02 -04:00
parent 49b7e623ce
commit 06d45cb88a
2 changed files with 10 additions and 17 deletions

View File

@@ -35,14 +35,7 @@
using namespace openshot;
ImageReader::ImageReader(std::string path) : path(path), is_open(false)
{
// Open and Close the reader, to populate its attributes (such as height, width, etc...)
Open();
Close();
}
ImageReader::ImageReader(std::string path, bool inspect_reader) : path(path), is_open(false)
ImageReader::ImageReader(const std::string& path, bool inspect_reader) : path(path), is_open(false)
{
// Open and Close the reader, to populate its attributes (such as height, width, etc...)
if (inspect_reader) {