Mercurial > hg > orthanc
comparison Core/Images/PngReader.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 |
---|---|
202 png_read_image(rabi.png_, &rows[0]); | 202 png_read_image(rabi.png_, &rows[0]); |
203 | 203 |
204 AssignWritable(format, width, height, pitch, &data_[0]); | 204 AssignWritable(format, width, height, pitch, &data_[0]); |
205 } | 205 } |
206 | 206 |
207 void PngReader::ReadFromFile(const char* filename) | 207 void PngReader::ReadFromFile(const std::string& filename) |
208 { | 208 { |
209 FileRabi f(filename); | 209 FileRabi f(filename.c_str()); |
210 | 210 |
211 char header[8]; | 211 char header[8]; |
212 if (fread(header, 1, 8, f.fp_) != 8) | 212 if (fread(header, 1, 8, f.fp_) != 8) |
213 { | 213 { |
214 throw OrthancException(ErrorCode_BadFileFormat); | 214 throw OrthancException(ErrorCode_BadFileFormat); |