Mercurial > hg > orthanc
changeset 5627:a7c88563c8cc
fix build with boost 1.85.0
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Thu, 16 May 2024 21:32:55 +0200 |
parents | 72dcf3a8d7d5 |
children | 6045c696e86b |
files | OrthancFramework/Sources/SystemToolbox.cpp OrthancServer/Plugins/Engine/PluginsManager.cpp OrthancServer/Plugins/Samples/ModalityWorklists/Plugin.cpp OrthancServer/Sources/OrthancConfiguration.cpp |
diffstat | 4 files changed, 4 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/OrthancFramework/Sources/SystemToolbox.cpp Thu May 16 15:31:31 2024 +0200 +++ b/OrthancFramework/Sources/SystemToolbox.cpp Thu May 16 21:32:55 2024 +0200 @@ -774,7 +774,7 @@ MimeType SystemToolbox::AutodetectMimeType(const std::string& path) { - std::string extension = boost::filesystem::extension(path); + std::string extension = boost::filesystem::path(path).extension().string(); Toolbox::ToLowerCase(extension); // http://en.wikipedia.org/wiki/Mime_types
--- a/OrthancServer/Plugins/Engine/PluginsManager.cpp Thu May 16 15:31:31 2024 +0200 +++ b/OrthancServer/Plugins/Engine/PluginsManager.cpp Thu May 16 21:32:55 2024 +0200 @@ -307,7 +307,7 @@ } else { - std::string extension = boost::filesystem::extension(it->path()); + std::string extension = it->path().extension().string(); Toolbox::ToLowerCase(extension); if (extension == PLUGIN_EXTENSION)
--- a/OrthancServer/Plugins/Samples/ModalityWorklists/Plugin.cpp Thu May 16 15:31:31 2024 +0200 +++ b/OrthancServer/Plugins/Samples/ModalityWorklists/Plugin.cpp Thu May 16 21:32:55 2024 +0200 @@ -166,7 +166,7 @@ if (type == fs::regular_file || type == fs::reparse_file) // cf. BitBucket issue #11 { - std::string extension = fs::extension(it->path()); + std::string extension = it->path().extension().string(); std::transform(extension.begin(), extension.end(), extension.begin(), tolower); // Convert to lowercase if (extension == ".wl")
--- a/OrthancServer/Sources/OrthancConfiguration.cpp Thu May 16 15:31:31 2024 +0200 +++ b/OrthancServer/Sources/OrthancConfiguration.cpp Thu May 16 21:32:55 2024 +0200 @@ -114,7 +114,7 @@ { if (!is_directory(it->status())) { - std::string extension = boost::filesystem::extension(it->path()); + std::string extension = it->path().extension().string(); Toolbox::ToLowerCase(extension); if (extension == ".json")