AGS: Fix Cast Qualification GCC Compiler Warnings

This commit is contained in:
D G Turner 2022-04-24 13:53:18 +01:00
parent b04679f98a
commit 291fbe51a1
10 changed files with 10 additions and 10 deletions

View File

@ -38,7 +38,7 @@ size_t CCAudioChannel::CalcSerializeSize() {
}
void CCAudioChannel::Serialize(const char *address, Stream *out) {
ScriptAudioChannel *ach = (ScriptAudioChannel *)address;
const ScriptAudioChannel *ach = (const ScriptAudioChannel *)address;
out->WriteInt32(ach->id);
}

View File

@ -37,7 +37,7 @@ size_t CCAudioClip::CalcSerializeSize() {
}
void CCAudioClip::Serialize(const char *address, Stream *out) {
ScriptAudioClip *ach = (ScriptAudioClip *)address;
const ScriptAudioClip *ach = (const ScriptAudioClip *)address;
out->WriteInt32(ach->id);
}

View File

@ -45,7 +45,7 @@ size_t CCCharacter::CalcSerializeSize() {
// serialize the object into BUFFER (which is BUFSIZE bytes)
// return number of bytes used
void CCCharacter::Serialize(const char *address, Stream *out) {
CharacterInfo *chaa = (CharacterInfo *)address;
const CharacterInfo *chaa = (const CharacterInfo *)address;
out->WriteInt32(chaa->index_id);
}

View File

@ -42,7 +42,7 @@ size_t CCDialog::CalcSerializeSize() {
// serialize the object into BUFFER (which is BUFSIZE bytes)
// return number of bytes used
void CCDialog::Serialize(const char *address, Stream *out) {
ScriptDialog *shh = (ScriptDialog *)address;
const ScriptDialog *shh = (const ScriptDialog *)address;
out->WriteInt32(shh->id);
}

View File

@ -40,7 +40,7 @@ size_t CCGUI::CalcSerializeSize() {
// serialize the object into BUFFER (which is BUFSIZE bytes)
// return number of bytes used
void CCGUI::Serialize(const char *address, Stream *out) {
ScriptGUI *shh = (ScriptGUI *)address;
const ScriptGUI *shh = (const ScriptGUI *)address;
out->WriteInt32(shh->id);
}

View File

@ -42,7 +42,7 @@ size_t CCGUIObject::CalcSerializeSize() {
// serialize the object into BUFFER (which is BUFSIZE bytes)
// return number of bytes used
void CCGUIObject::Serialize(const char *address, Stream *out) {
GUIObject *guio = (GUIObject *)address;
const GUIObject *guio = (const GUIObject *)address;
out->WriteInt32(guio->ParentId);
out->WriteInt32(guio->Id);
}

View File

@ -42,7 +42,7 @@ size_t CCHotspot::CalcSerializeSize() {
// serialize the object into BUFFER (which is BUFSIZE bytes)
// return number of bytes used
void CCHotspot::Serialize(const char *address, Stream *out) {
ScriptHotspot *shh = (ScriptHotspot *)address;
const ScriptHotspot *shh = (const ScriptHotspot *)address;
out->WriteInt32(shh->id);
}

View File

@ -41,7 +41,7 @@ size_t CCInventory::CalcSerializeSize() {
// serialize the object into BUFFER (which is BUFSIZE bytes)
// return number of bytes used
void CCInventory::Serialize(const char *address, Stream *out) {
ScriptInvItem *shh = (ScriptInvItem *)address;
const ScriptInvItem *shh = (const ScriptInvItem *)address;
out->WriteInt32(shh->id);
}

View File

@ -42,7 +42,7 @@ size_t CCObject::CalcSerializeSize() {
// serialize the object into BUFFER (which is BUFSIZE bytes)
// return number of bytes used
void CCObject::Serialize(const char *address, Stream *out) {
ScriptObject *shh = (ScriptObject *)address;
const ScriptObject *shh = (const ScriptObject *)address;
out->WriteInt32(shh->id);
}

View File

@ -42,7 +42,7 @@ size_t CCRegion::CalcSerializeSize() {
// serialize the object into BUFFER (which is BUFSIZE bytes)
// return number of bytes used
void CCRegion::Serialize(const char *address, Stream *out) {
ScriptRegion *shh = (ScriptRegion *)address;
const ScriptRegion *shh = (const ScriptRegion *)address;
out->WriteInt32(shh->id);
}