diff options
author | John Ankarström <john@ankarstrom.se> | 2022-08-22 03:23:12 +0200 |
---|---|---|
committer | John Ankarström <john@ankarstrom.se> | 2022-08-22 03:23:12 +0200 |
commit | b87833b701a02fa960fab3fdb40d0b2d2c49a80e (patch) | |
tree | 521f653729196b42c3af066c82a4b5599d84e691 /c/main.cpp | |
parent | d7bb04a09c7f04b0c3a8580d6a9ccd6313656fcf (diff) | |
download | EpisodeBrowser-b87833b701a02fa960fab3fdb40d0b2d2c49a80e.tar.gz |
Change initialization style.
Because I don't want to have to remember what classes have
initializer_list overloads.
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)); } |