From 6e94848aec5d42eed5f9e1f5548ade26915ce90b Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Tue, 4 Jun 2024 21:14:45 +0100 Subject: Tidy many stringy messes with std::format --- ui/window.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'ui/window.cpp') diff --git a/ui/window.cpp b/ui/window.cpp index 6855aa0..dd488d7 100644 --- a/ui/window.cpp +++ b/ui/window.cpp @@ -1,5 +1,6 @@ #include "window.h" #include "uiComponent.h" +#include #include #include #include @@ -9,7 +10,7 @@ Window::GLInitHelper::GLInitHelper() [[maybe_unused]] static auto init = []() { // NOLINTNEXTLINE(cppcoreguidelines-pro-type-reinterpret-cast) if (const auto version = gladLoadGL(reinterpret_cast(SDL_GL_GetProcAddress)); version < 30003) { - throw std::runtime_error {"Insufficient OpenGL version: " + std::to_string(version)}; + throw std::runtime_error {std::format("Insufficient OpenGL version: {}", version)}; } else { return version; -- cgit v1.2.3