From f5107716864945191beb61b3694ffbbdccf8481d Mon Sep 17 00:00:00 2001 From: Patrick Wuttke Date: Sun, 12 Jan 2025 13:18:15 +0100 Subject: [PATCH] Replaced some u8string() with string() to fix compilation with C++ 20/23. --- source/detail/posix/xdnd_protocol.hpp | 2 +- source/gui/filebox.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/source/detail/posix/xdnd_protocol.hpp b/source/detail/posix/xdnd_protocol.hpp index aa1ae432..d8568696 100644 --- a/source/detail/posix/xdnd_protocol.hpp +++ b/source/detail/posix/xdnd_protocol.hpp @@ -156,7 +156,7 @@ namespace nana{ for(auto& file : data.files) { uri_list += "file://"; - uri_list += file.u8string(); + uri_list += file.string(); uri_list += "\r\n"; } diff --git a/source/gui/filebox.cpp b/source/gui/filebox.cpp index 63586abd..ba471f37 100644 --- a/source/gui/filebox.cpp +++ b/source/gui/filebox.cpp @@ -1013,7 +1013,7 @@ namespace nana for(auto i = selection_.targets.cbegin(); i != selection_.targets.cend();) { std::filesystem::path p{*i}; - if(p.filename().u8string() == mfs.name) + if(p.filename().string() == mfs.name) { if(!selection_.is_deselect_delayed) { @@ -1042,7 +1042,7 @@ namespace nana if(!filename_string.empty()) filename_string += ' '; - filename_string += "\"" + p.filename().u8string() + "\""; + filename_string += "\"" + p.filename().string() + "\""; } }