From 9cce6bad68ba4688df20281e227b88f64e938651 Mon Sep 17 00:00:00 2001 From: Evil Eye Date: Sun, 24 Aug 2025 15:43:11 +0200 Subject: [PATCH] Replace StringUtils::format in components/shader --- components/shader/shadermanager.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/components/shader/shadermanager.cpp b/components/shader/shadermanager.cpp index a958637516..b51901df97 100644 --- a/components/shader/shadermanager.cpp +++ b/components/shader/shadermanager.cpp @@ -4,6 +4,7 @@ #include #include #include +#include #include #include #include @@ -18,7 +19,6 @@ #include #include #include -#include #include namespace @@ -108,7 +108,7 @@ namespace Shader int lineNumber = getLineNumber(source, foundPos, 1, -1); - source.replace(foundPos, 0, "#line " + std::to_string(lineNumber) + "\n"); + source.replace(foundPos, 0, std::format("#line {}\n", lineNumber)); position = foundPos; } @@ -554,7 +554,7 @@ namespace Shader // Assign a unique prefix to allow the SharedStateManager to compare shaders efficiently. // Append shader source filename for debugging. static unsigned int counter = 0; - shader->setName(Misc::StringUtils::format("%u %s", counter++, templateName)); + shader->setName(std::format("{} {}", counter++, templateName)); mHotReloadManager->addShaderFiles(templateName, defines);