mirror of
https://github.com/slsdetectorgroup/aare.git
synced 2026-11-10 10:43:53 +01:00
Convert paths to strings explicitly (#400)
On Windows std::filesystem::path holds wchar_t, so assigning a path component to a std::string or passing path::c_str() to fopen does not compile. Use path::string() at those sites, and drop a redundant path round trip in NumpyFile. closes #399
This commit is contained in:
1 parent
4ac941a003
commit
3e90eb2539
5 files changed
+7
-8
No files matched your search
@@ -136,7 +136,7 @@ void JungfrauDataFile::find_frame_size(const std::filesystem::path &fname) {
|
||||
|
||||
void JungfrauDataFile::parse_fname(const std::filesystem::path &fname) {
|
||||
m_path = fname.parent_path();
|
||||
m_base_name = fname.stem();
|
||||
m_base_name = fname.stem().string();
|
||||
|
||||
// find file index, then remove if from the base name
|
||||
if (auto pos = m_base_name.find_last_of('_'); pos != std::string::npos) {
|
||||
|
||||
Reference in new issue
Block a user