1
0
mirror of synced 2025-01-18 09:04:52 +01:00

fix: std::bind_front not supporting member functions everywhere

This commit is contained in:
WerWolv 2024-03-10 15:40:32 +01:00
parent c2aafb14c2
commit ca3708df71

View File

@ -227,7 +227,7 @@ namespace hex::plugin::builtin {
m_data = m_file.readVectorAtomic(0x00, m_fileSize); m_data = m_file.readVectorAtomic(0x00, m_fileSize);
if (!m_data.empty()) { if (!m_data.empty()) {
m_changeTracker = wolv::io::ChangeTracker(m_file); m_changeTracker = wolv::io::ChangeTracker(m_file);
m_changeTracker.startTracking(std::bind_front(FileProvider::handleFileChange, this)); m_changeTracker.startTracking([this]{ this->handleFileChange(); });
m_file.close(); m_file.close();
m_loadedIntoMemory = true; m_loadedIntoMemory = true;
} }