comparison Core/Images/JpegReader.cpp @ 1925:56276bad7e42

removal of two overloads making few sense
author Sebastien Jodogne <s.jodogne@gmail.com>
date Tue, 08 Mar 2016 16:56:34 +0100
parents b1291df2f780
children 08ce34cfacad
comparison
equal deleted inserted replaced
1924:6c73df12ca51 1925:56276bad7e42
91 91
92 jpeg_finish_decompress(&cinfo); 92 jpeg_finish_decompress(&cinfo);
93 } 93 }
94 94
95 95
96 void JpegReader::ReadFromFile(const char* filename) 96 void JpegReader::ReadFromFile(const std::string& filename)
97 { 97 {
98 FILE* fp = fopen(filename, "rb"); 98 FILE* fp = fopen(filename.c_str(), "rb");
99 if (!fp) 99 if (!fp)
100 { 100 {
101 throw OrthancException(ErrorCode_InexistentFile); 101 throw OrthancException(ErrorCode_InexistentFile);
102 } 102 }
103 103