Mercurial > hg > orthanc-webviewer
comparison Orthanc/Core/Toolbox.cpp @ 89:bc05500ea317
sync
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Mon, 09 Nov 2015 09:34:49 +0100 |
parents | 56a016ae8090 |
children | a54260a7fe59 |
comparison
equal
deleted
inserted
replaced
88:cb277a708b48 | 89:bc05500ea317 |
---|---|
208 void Toolbox::ReadFile(std::string& content, | 208 void Toolbox::ReadFile(std::string& content, |
209 const std::string& path) | 209 const std::string& path) |
210 { | 210 { |
211 if (!boost::filesystem::is_regular_file(path)) | 211 if (!boost::filesystem::is_regular_file(path)) |
212 { | 212 { |
213 LOG(ERROR) << "The path does not point to a regular file: " << path; | 213 LOG(ERROR) << std::string("The path does not point to a regular file: ") << path; |
214 throw OrthancException(ErrorCode_RegularFileExpected); | 214 throw OrthancException(ErrorCode_RegularFileExpected); |
215 } | 215 } |
216 | 216 |
217 boost::filesystem::ifstream f; | 217 boost::filesystem::ifstream f; |
218 f.open(path, std::ifstream::in | std::ifstream::binary); | 218 f.open(path, std::ifstream::in | std::ifstream::binary); |