refactoring

This commit is contained in:
David Kocik 2019-11-28 13:50:58 +01:00
parent 649f3a2c3e
commit 735308b794
4 changed files with 22 additions and 22 deletions

View file

@ -22,8 +22,8 @@ DEFINE_GUID(GUID_DEVINTERFACE_USB_DEVICE,
namespace Slic3r {
namespace GUI {
std::vector<DriveData> RemovableDriveManager::m_current_drives;
std::vector<std::function<void()>> RemovableDriveManager::m_callbacks;
//std::vector<DriveData> RemovableDriveManager::m_current_drives;
//std::vector<std::function<void()>> RemovableDriveManager::m_callbacks;
#if _WIN32
@ -242,7 +242,7 @@ bool RemovableDriveManager::update(long time)
if(last_update == 0)
{
//add_callback(std::bind(&RemovableDriveManager::print, RemovableDriveManager::getInstance()));
add_callback([](void) { print(); });
add_callback([](void) { RemovableDriveManager::get_instance().print(); });
#if _WIN32
register_window();
#endif