X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=src%2FcreaImageIODicomScanner.cpp;h=8f7dbc1d86f884867eae8a8ef318aaf8c1da0b2e;hb=efe10f4ac0d8de45d26ca7b1f74f3676802c1b90;hp=7b1b0b7d4cadfd5ec603aacb43072412ff0e3217;hpb=c7482ec7d04a5e5987841932a6856ebd471cebdb;p=creaImageIO.git diff --git a/src/creaImageIODicomScanner.cpp b/src/creaImageIODicomScanner.cpp index 7b1b0b7..8f7dbc1 100644 --- a/src/creaImageIODicomScanner.cpp +++ b/src/creaImageIODicomScanner.cpp @@ -26,22 +26,15 @@ */ #include -#include "creaImageIOSystem.h" + #include #include "boost/algorithm/string.hpp" - - - -#include #include "boost/filesystem/path.hpp" -#include -#include -#include -#include - #include - +#if defined(_WIN32) +#pragma warning(disable: 4996) +#endif #ifdef _DEBUG #define new DEBUG_NEW @@ -176,7 +169,7 @@ void DicomImageScanner::ReadAttributes(const std::string& filename, if ( attr.find("D0004_1500") != attr.end()) { boost::filesystem::path full_path(filename); - std::string f = full_path.leaf(); + std::string f = full_path.leaf().string(); attr["D0004_1500"] = f; } if ( attr.find("FullFileName")!= attr.end())