From a3f540fe3476ce5e36a854c73dd520b57d229ffd Mon Sep 17 00:00:00 2001 From: Berthold Stoeger Date: Sat, 29 Apr 2023 14:22:00 +0200 Subject: [PATCH] core: fix warnings in windows.cpp The compiler was (correctly) complaining about a const char * to char * conversion. Signed-off-by: Berthold Stoeger --- core/windows.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/windows.cpp b/core/windows.cpp index 28aee8d8d..17b82613c 100644 --- a/core/windows.cpp +++ b/core/windows.cpp @@ -25,7 +25,7 @@ * note: the standard library's was deprecated and is in * an ominous state, so use the native Windows version for now. */ -static std::string utf16_to_utf8_fl(const std::wstring &utf16, char *file, int line) +static std::string utf16_to_utf8_fl(const std::wstring &utf16, const char *file, int line) { assert(utf16 != NULL); assert(file != NULL); @@ -108,7 +108,7 @@ bool subsurface_ignore_font(const char *font) /* this function converts a utf-8 string to win32's utf-16 2 byte string. * the caller function should manage the allocated memory. */ -static wchar_t *utf8_to_utf16_fl(const char *utf8, char *file, int line) +static wchar_t *utf8_to_utf16_fl(const char *utf8, const char *file, int line) { assert(utf8 != NULL); assert(file != NULL);