From 7ca6a966b61dbb417706f7686609a41d5a0b581a Mon Sep 17 00:00:00 2001 From: Albin Johansson Date: Sat, 15 Jun 2024 22:41:10 +0200 Subject: [PATCH] Don't enforce a variable type shape --- source/core/src/tactile/core/ui/common/attribute_widgets.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/core/src/tactile/core/ui/common/attribute_widgets.cpp b/source/core/src/tactile/core/ui/common/attribute_widgets.cpp index 5be976782f..05e15fd7b3 100644 --- a/source/core/src/tactile/core/ui/common/attribute_widgets.cpp +++ b/source/core/src/tactile/core/ui/common/attribute_widgets.cpp @@ -51,7 +51,7 @@ auto push_string_input(const char* id, const Attribute::string_type& str) // Make sure we leave one character available for the NUL terminator. const auto copy_count = std::min(str.size(), buffer.size() - 1); - auto* copy_end = std::copy_n(str.begin(), copy_count, buffer.begin()); + auto copy_end = std::copy_n(str.begin(), copy_count, buffer.begin()); *copy_end = '\0'; ImGui::SetNextItemWidth(-1.0f);