]> Creatis software - creaImageIO.git/blobdiff - src/creaImageIOUltrasonixImageReader.cpp
#3185 creaImageIO Feature New Normal - Clean code
[creaImageIO.git] / src / creaImageIOUltrasonixImageReader.cpp
index d5f6c655240da2f5f2b00acd13961719673bc324..8c609d356f6cdef917ff833a0a6360a8a0d59ea7 100644 (file)
 #include "creaImageIOUltrasonixImageReader.h"
 #include <creaVtk.h>
 #include <boost/filesystem/path.hpp>
+
+#if defined(_WIN32)
+#pragma warning(disable: 4996)
+#endif
+
 namespace creaImageIO
 {
 #define HEADER_SIZE    19
@@ -261,7 +266,7 @@ namespace creaImageIO
     if ( (i = 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();
           i->second = f;
     }
     if ( (i = attr.find("D0028_0010")) != attr.end())