[Scummvm-git-logs] scummvm master -> 0084d53aebe903562e7ef78b4a3b744a7ddf05cf
dreammaster
dreammaster at scummvm.org
Mon Jul 12 03:34:52 UTC 2021
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .
Summary:
0084d53aeb AGS: Another gcc warning fix
Commit: 0084d53aebe903562e7ef78b4a3b744a7ddf05cf
https://github.com/scummvm/scummvm/commit/0084d53aebe903562e7ef78b4a3b744a7ddf05cf
Author: Paul Gilbert (dreammaster at scummvm.org)
Date: 2021-07-11T20:34:43-07:00
Commit Message:
AGS: Another gcc warning fix
Changed paths:
engines/ags/engine/ac/string.cpp
diff --git a/engines/ags/engine/ac/string.cpp b/engines/ags/engine/ac/string.cpp
index 61334af74a..9cdd215924 100644
--- a/engines/ags/engine/ac/string.cpp
+++ b/engines/ags/engine/ac/string.cpp
@@ -247,7 +247,7 @@ DynObjectRef CreateNewScriptStringObj(const char *fromText, bool reAllocate) {
str = new ScriptString(fromText);
} else {
str = new ScriptString();
- str->text = (char *)fromText;
+ str->text = const_cast<char *>(fromText);
}
void *obj_ptr = str->text;
int32_t handle = ccRegisterManagedObject(obj_ptr, str);
More information about the Scummvm-git-logs
mailing list