From 10103d90c32b0864cd841df9c95fb35fee8fb6a6 Mon Sep 17 00:00:00 2001
From: Joakim Hunskaar <joakim.borge.hunskar@gmail.com>
Date: Sat, 22 Jun 2024 17:05:09 +0200
Subject: [PATCH] argument types in textinput are now compatible

---
 .../subprojects/animationwindow/src/widgets/TextInput.cpp       | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dependencies/subprojects/animationwindow/src/widgets/TextInput.cpp b/dependencies/subprojects/animationwindow/src/widgets/TextInput.cpp
index 6cf3971..a0edfc9 100644
--- a/dependencies/subprojects/animationwindow/src/widgets/TextInput.cpp
+++ b/dependencies/subprojects/animationwindow/src/widgets/TextInput.cpp
@@ -1,7 +1,7 @@
 #include "widgets/TextInput.h"
 
 void TDT4102::TextInput::update(nk_context *context) {
-    nk_edit_string_zero_terminated(context, NK_EDIT_SELECTABLE | NK_EDIT_ALWAYS_INSERT_MODE | NK_EDIT_BOX | NK_EDIT_SIMPLE, contents.data(), internal::TEXT_INPUT_CHARACTER_LIMIT, nk_filter_ascii);
+    nk_edit_string_zero_terminated(context, NK_EDIT_SELECTABLE | NK_EDIT_ALWAYS_INSERT_MODE | NK_EDIT_BOX | NK_EDIT_SIMPLE, const_cast<char*>(contents.data()), internal::TEXT_INPUT_CHARACTER_LIMIT, nk_filter_ascii);
     
     // Detect whether any editing of the string has occurred
     // Nuklear only reports whether the text box has lost focus
-- 
GitLab