diff 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
line wrap: on
line diff
--- a/Core/Images/JpegReader.cpp	Mon Mar 07 17:43:20 2016 +0100
+++ b/Core/Images/JpegReader.cpp	Tue Mar 08 16:56:34 2016 +0100
@@ -93,9 +93,9 @@
   }
 
 
-  void JpegReader::ReadFromFile(const char* filename)
+  void JpegReader::ReadFromFile(const std::string& filename)
   {
-    FILE* fp = fopen(filename, "rb");
+    FILE* fp = fopen(filename.c_str(), "rb");
     if (!fp)
     {
       throw OrthancException(ErrorCode_InexistentFile);