Mercurial > minori
comparison src/library/library.cc @ 227:c4f03f83b252
library: do explicit conversion from fs::path to std::string
this fixes compiler errors on Windows.
| author | Paper <mrpapersonic@gmail.com> |
|---|---|
| date | Mon, 08 Jan 2024 21:30:18 -0500 |
| parents | 84e0a3c4737a |
| children | d030b30526d5 |
comparison
equal
deleted
inserted
replaced
| 226:f784b5b1914c | 227:c4f03f83b252 |
|---|---|
| 23 const std::filesystem::path path(spath); | 23 const std::filesystem::path path(spath); |
| 24 for (const auto& entry : std::filesystem::recursive_directory_iterator(path)) { | 24 for (const auto& entry : std::filesystem::recursive_directory_iterator(path)) { |
| 25 if (!std::filesystem::is_regular_file(entry.path())) | 25 if (!std::filesystem::is_regular_file(entry.path())) |
| 26 continue; | 26 continue; |
| 27 | 27 |
| 28 const std::string basename = entry.path().filename(); | 28 const std::string basename = entry.path().filename().string(); |
| 29 | 29 |
| 30 anitomy::Anitomy anitomy; | 30 anitomy::Anitomy anitomy; |
| 31 anitomy.Parse(Strings::ToWstring(basename)); | 31 anitomy.Parse(Strings::ToWstring(basename)); |
| 32 | 32 |
| 33 const auto& elements = anitomy.elements(); | 33 const auto& elements = anitomy.elements(); |
