Skip to content

Commit 40be782

Browse files
committed
Fix windows compile.
1 parent 0abf448 commit 40be782

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/gfs/filesystem.cpp

+2-1
Original file line numberDiff line numberDiff line change
@@ -450,7 +450,7 @@ namespace gfs
450450
if (!std::filesystem::exists(filename) || !std::filesystem::is_regular_file(filename))
451451
return;
452452

453-
if (m_existingFileWatchers.find(filename) != m_existingFileWatchers.end())
453+
if (m_existingFileWatchers.find(filename.string()) != m_existingFileWatchers.end())
454454
return;
455455

456456
auto filewatch =
@@ -459,6 +459,7 @@ namespace gfs
459459
OnFileModified(path);
460460
});
461461
m_fileWatchers.push_back(std::move(filewatch));
462+
m_existingFileWatchers.emplace(filename.string());
462463
}
463464

464465
void Filesystem::OnFileModified(const std::filesystem::path& filePath)

0 commit comments

Comments
 (0)