From bd857d24443b8c8f5d2f58047c3f8ac5f058acea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?John=20Ankarstr=C3=B6m?= Date: Wed, 17 Aug 2022 02:33:26 +0200 Subject: Make FileView more type-safe. --- c/debug.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'c/debug.cpp') diff --git a/c/debug.cpp b/c/debug.cpp index 6b5baff..b23df37 100644 --- a/c/debug.cpp +++ b/c/debug.cpp @@ -19,13 +19,13 @@ Benchmark::Benchmark(const char* const name, const int id, const int avgmax) if (!freq) { static LARGE_INTEGER liFreq; if (!QueryPerformanceFrequency(&liFreq)) - throw Win32Error(); + throw Win32Error{}; freq = liFreq.QuadPart; } LARGE_INTEGER liTicks; if (!QueryPerformanceCounter(&liTicks)) - throw Win32Error(); + throw Win32Error{}; ticks = liTicks.QuadPart; } -- cgit v1.2.3