From 132e64728ff849bfeb60f15a2743ac9d1bea788b Mon Sep 17 00:00:00 2001 From: Kim Kulling Date: Sat, 18 Apr 2026 11:35:17 +0200 Subject: [PATCH 1/4] Bugfix: remove typo from logging. --- src/tinyui.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/tinyui.cpp b/src/tinyui.cpp index d1e3cd2..6afe2ea 100644 --- a/src/tinyui.cpp +++ b/src/tinyui.cpp @@ -56,7 +56,11 @@ static void logVersion(const Context &ctx) { void log_message(LogSeverity severity, const char *message) { assert(message != nullptr); - std::cout << SeverityToken[static_cast(severity)] << " " << message <<"\n."; + if (severity == LogSeverity::Message) { + std::cout << message << "\n"; + } else { + std::cout << SeverityToken[static_cast(severity)] << " " << message << "\n"; + } } Context *gCtx = nullptr; From d45441dfeaff6d4027aac5fd273e03aabeb8d72f Mon Sep 17 00:00:00 2001 From: Kim Kulling Date: Sat, 18 Apr 2026 13:28:17 +0200 Subject: [PATCH 2/4] Use c++23 --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index b85dcdc..5dc20aa 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 3.10) option(TINY_UI_SAMPLES "The build will create the samples." ON) PROJECT(tiny_ui) -set(CMAKE_CXX_STANDARD 17) +set(CMAKE_CXX_STANDARD 23 ) SET( TUI_VERSION_MAJOR 0 ) SET( TUI_VERSION_MINOR 0 ) SET( TUI_VERSION_PATCH 2 ) From 7ad53c501f92eec03cadd04a922fe2acae56ddef Mon Sep 17 00:00:00 2001 From: Kim Kulling Date: Sat, 18 Apr 2026 13:28:32 +0200 Subject: [PATCH 3/4] Fix review finding --- src/tinyui.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/tinyui.cpp b/src/tinyui.cpp index 6afe2ea..9ed071b 100644 --- a/src/tinyui.cpp +++ b/src/tinyui.cpp @@ -59,7 +59,7 @@ void log_message(LogSeverity severity, const char *message) { if (severity == LogSeverity::Message) { std::cout << message << "\n"; } else { - std::cout << SeverityToken[static_cast(severity)] << " " << message << "\n"; + std::cout << SeverityToken[std::to_underlying(severity)] << " " << message << "\n"; } } @@ -71,7 +71,7 @@ Context *Context::create(const char *title, const Style &style) { ctx->mAppTitle = title; ctx->mWindowsTitle = title; ctx->mStyle = style; - ctx->mVersion = Version{0, 0, 2}; + ctx->mVersion = Version(0, 0, 2); logVersion(*ctx); From 51dbfeec02018a8bbee9555eeea040b422fd1a72 Mon Sep 17 00:00:00 2001 From: Kim Kulling Date: Sat, 18 Apr 2026 13:36:01 +0200 Subject: [PATCH 4/4] Fix build: setup version --- src/tinyui.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tinyui.cpp b/src/tinyui.cpp index 9ed071b..eb33308 100644 --- a/src/tinyui.cpp +++ b/src/tinyui.cpp @@ -27,6 +27,7 @@ SOFTWARE. #include "backends/sdl2_iodevice.h" #include +#include namespace tinyui { @@ -71,7 +72,6 @@ Context *Context::create(const char *title, const Style &style) { ctx->mAppTitle = title; ctx->mWindowsTitle = title; ctx->mStyle = style; - ctx->mVersion = Version(0, 0, 2); logVersion(*ctx);