diff options
Diffstat (limited to 'c/main.cpp')
-rw-r--r-- | c/main.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -59,8 +59,8 @@ DlvDragger g_dragDlv; /* File views. */ FileView<CfgA> g_fvCfg = FileView<CfgA>::Initialized(L"cfg.dat", 1); CfgA& g_cfg = g_fvCfg.At(0); -FileView<ElvDataA> g_fvElv{L"elvdata.dat", g_cfg.cEp+128u}; -FileView<DlvDataA> g_fvDlv{L"dlvdata.dat", g_cfg.cEp+128u}; +FileView<ElvDataA> g_fvElv(L"elvdata.dat", g_cfg.cEp+128u); +FileView<DlvDataA> g_fvDlv(L"dlvdata.dat", g_cfg.cEp+128u); /* Optional Windows functions. */ BOOL (*IsThemeActive)(); @@ -473,7 +473,7 @@ void WaitFor(void (*f)(bool*)) * shared boolean value to true. */ bDone = false; bActive = true; - std::thread{f, &bDone}.detach(); + std::thread(f, &bDone).detach(); SendMessage(g_hWndStatus, SB_SETTEXT, MAKEWPARAM(1,0), reinterpret_cast<LPARAM>(L".")); Prefer(iTimer = SetTimer(nullptr, -1, 500, proc)); } |