aboutsummaryrefslogtreecommitdiff
path: root/c/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'c/main.cpp')
-rw-r--r--c/main.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/c/main.cpp b/c/main.cpp
index 0e6c839..e3e2f82 100644
--- a/c/main.cpp
+++ b/c/main.cpp
@@ -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));
}