From 6658be66c28e29be43a71841a0496e96eb48de23 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Fri, 8 May 2020 18:34:49 -0400 Subject: [PATCH] CTextParser: Mark parameter to u16stof as const The data being pointed to isn't modified. --- Runtime/GuiSys/CTextParser.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Runtime/GuiSys/CTextParser.cpp b/Runtime/GuiSys/CTextParser.cpp index 952e8b35d..154e7d5f3 100644 --- a/Runtime/GuiSys/CTextParser.cpp +++ b/Runtime/GuiSys/CTextParser.cpp @@ -5,7 +5,7 @@ namespace urde { -static float u16stof(char16_t* str) { +static float u16stof(const char16_t* str) { char cstr[16]; int i; for (i = 0; i < 15 && str[i] != u'\0'; ++i)