diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2024-06-04 21:14:45 +0100 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2024-06-04 21:14:45 +0100 |
commit | 6e94848aec5d42eed5f9e1f5548ade26915ce90b (patch) | |
tree | b6cf5bc39f7da4c8853491da4008c29406b135f3 /ui/window.cpp | |
parent | Tidy of glRef (diff) | |
download | ilt-6e94848aec5d42eed5f9e1f5548ade26915ce90b.tar.bz2 ilt-6e94848aec5d42eed5f9e1f5548ade26915ce90b.tar.xz ilt-6e94848aec5d42eed5f9e1f5548ade26915ce90b.zip |
Tidy many stringy messes with std::format
Diffstat (limited to 'ui/window.cpp')
-rw-r--r-- | ui/window.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
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 <format> #include <glad/gl.h> #include <glm/glm.hpp> #include <stdexcept> @@ -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<GLADloadfunc>(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; |