aboutsummaryrefslogtreecommitdiff
path: root/c/main.cpp
diff options
context:
space:
mode:
authorJohn Ankarström <john@ankarstrom.se>2022-08-22 03:23:12 +0200
committerJohn Ankarström <john@ankarstrom.se>2022-08-22 03:23:12 +0200
commitb87833b701a02fa960fab3fdb40d0b2d2c49a80e (patch)
tree521f653729196b42c3af066c82a4b5599d84e691 /c/main.cpp
parentd7bb04a09c7f04b0c3a8580d6a9ccd6313656fcf (diff)
downloadEpisodeBrowser-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.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));
}