diff options
author | Paul Gilbert | 2016-06-29 19:53:16 -0400 |
---|---|---|
committer | Paul Gilbert | 2016-07-15 19:25:58 -0400 |
commit | 5ccc0a66da38d23520234e7060efaf966d3345b9 (patch) | |
tree | 9cff2311be2b8e9cd1f62e76ae74e15f3d4c18fc /engines/titanic/messages | |
parent | a82bcd3ce7ef0ae604af45fdb56668fca47e7137 (diff) | |
download | scummvm-rg350-5ccc0a66da38d23520234e7060efaf966d3345b9.tar.gz scummvm-rg350-5ccc0a66da38d23520234e7060efaf966d3345b9.tar.bz2 scummvm-rg350-5ccc0a66da38d23520234e7060efaf966d3345b9.zip |
TITANIC: Removed const modifier from all saveable objects
Turns out that CGameObject::save regenerates the _movieRangeInfo list.
So the const suffix can no longer be used for the entire hierarchy
Diffstat (limited to 'engines/titanic/messages')
-rw-r--r-- | engines/titanic/messages/auto_sound_event.cpp | 2 | ||||
-rw-r--r-- | engines/titanic/messages/auto_sound_event.h | 2 | ||||
-rw-r--r-- | engines/titanic/messages/bilge_auto_sound_event.cpp | 2 | ||||
-rw-r--r-- | engines/titanic/messages/bilge_auto_sound_event.h | 2 | ||||
-rw-r--r-- | engines/titanic/messages/bilge_dispensor_event.cpp | 2 | ||||
-rw-r--r-- | engines/titanic/messages/bilge_dispensor_event.h | 2 | ||||
-rw-r--r-- | engines/titanic/messages/door_auto_sound_event.cpp | 2 | ||||
-rw-r--r-- | engines/titanic/messages/door_auto_sound_event.h | 2 | ||||
-rw-r--r-- | engines/titanic/messages/messages.cpp | 2 | ||||
-rw-r--r-- | engines/titanic/messages/messages.h | 2 | ||||
-rw-r--r-- | engines/titanic/messages/service_elevator_door.cpp | 2 | ||||
-rw-r--r-- | engines/titanic/messages/service_elevator_door.h | 2 |
12 files changed, 12 insertions, 12 deletions
diff --git a/engines/titanic/messages/auto_sound_event.cpp b/engines/titanic/messages/auto_sound_event.cpp index 006762c49b..baa11c7d41 100644 --- a/engines/titanic/messages/auto_sound_event.cpp +++ b/engines/titanic/messages/auto_sound_event.cpp @@ -27,7 +27,7 @@ namespace Titanic { CAutoSoundEvent::CAutoSoundEvent() : CGameObject(), _value1(0), _value2(70) { } -void CAutoSoundEvent::save(SimpleFile *file, int indent) const { +void CAutoSoundEvent::save(SimpleFile *file, int indent) { file->writeNumberLine(1, indent); file->writeNumberLine(_value1, indent); file->writeNumberLine(_value2, indent); diff --git a/engines/titanic/messages/auto_sound_event.h b/engines/titanic/messages/auto_sound_event.h index 03baba354f..599404de9e 100644 --- a/engines/titanic/messages/auto_sound_event.h +++ b/engines/titanic/messages/auto_sound_event.h @@ -38,7 +38,7 @@ public: /** * Save the data for the class to file */ - virtual void save(SimpleFile *file, int indent) const; + virtual void save(SimpleFile *file, int indent); /** * Load the data for the class from file diff --git a/engines/titanic/messages/bilge_auto_sound_event.cpp b/engines/titanic/messages/bilge_auto_sound_event.cpp index 7bc91da0bc..fa87b4b79c 100644 --- a/engines/titanic/messages/bilge_auto_sound_event.cpp +++ b/engines/titanic/messages/bilge_auto_sound_event.cpp @@ -24,7 +24,7 @@ namespace Titanic { -void CBilgeAutoSoundEvent::save(SimpleFile *file, int indent) const { +void CBilgeAutoSoundEvent::save(SimpleFile *file, int indent) { file->writeNumberLine(1, indent); CAutoSoundEvent::save(file, indent); } diff --git a/engines/titanic/messages/bilge_auto_sound_event.h b/engines/titanic/messages/bilge_auto_sound_event.h index e51f74bfa5..5d322820ac 100644 --- a/engines/titanic/messages/bilge_auto_sound_event.h +++ b/engines/titanic/messages/bilge_auto_sound_event.h @@ -34,7 +34,7 @@ public: /** * Save the data for the class to file */ - virtual void save(SimpleFile *file, int indent) const; + virtual void save(SimpleFile *file, int indent); /** * Load the data for the class from file diff --git a/engines/titanic/messages/bilge_dispensor_event.cpp b/engines/titanic/messages/bilge_dispensor_event.cpp index f0daa7aa5e..043ffe75d3 100644 --- a/engines/titanic/messages/bilge_dispensor_event.cpp +++ b/engines/titanic/messages/bilge_dispensor_event.cpp @@ -24,7 +24,7 @@ namespace Titanic { -void CBilgeDispensorEvent::save(SimpleFile *file, int indent) const { +void CBilgeDispensorEvent::save(SimpleFile *file, int indent) { file->writeNumberLine(1, indent); CAutoSoundEvent::save(file, indent); } diff --git a/engines/titanic/messages/bilge_dispensor_event.h b/engines/titanic/messages/bilge_dispensor_event.h index df6e1127c1..8616373174 100644 --- a/engines/titanic/messages/bilge_dispensor_event.h +++ b/engines/titanic/messages/bilge_dispensor_event.h @@ -36,7 +36,7 @@ public: /** * Save the data for the class to file */ - virtual void save(SimpleFile *file, int indent) const; + virtual void save(SimpleFile *file, int indent); /** * Load the data for the class from file diff --git a/engines/titanic/messages/door_auto_sound_event.cpp b/engines/titanic/messages/door_auto_sound_event.cpp index ff9101f506..b9cedae6de 100644 --- a/engines/titanic/messages/door_auto_sound_event.cpp +++ b/engines/titanic/messages/door_auto_sound_event.cpp @@ -24,7 +24,7 @@ namespace Titanic { -void CDoorAutoSoundEvent::save(SimpleFile *file, int indent) const { +void CDoorAutoSoundEvent::save(SimpleFile *file, int indent) { file->writeNumberLine(1, indent); file->writeQuotedLine(_string1, indent); file->writeQuotedLine(_string2, indent); diff --git a/engines/titanic/messages/door_auto_sound_event.h b/engines/titanic/messages/door_auto_sound_event.h index cccc3fff9d..9b3ebbc3bc 100644 --- a/engines/titanic/messages/door_auto_sound_event.h +++ b/engines/titanic/messages/door_auto_sound_event.h @@ -42,7 +42,7 @@ public: /** * Save the data for the class to file */ - virtual void save(SimpleFile *file, int indent) const; + virtual void save(SimpleFile *file, int indent); /** * Load the data for the class from file diff --git a/engines/titanic/messages/messages.cpp b/engines/titanic/messages/messages.cpp index e25c22fc7e..5f587c975d 100644 --- a/engines/titanic/messages/messages.cpp +++ b/engines/titanic/messages/messages.cpp @@ -32,7 +32,7 @@ namespace Titanic { CMessage::CMessage() : CSaveableObject() { } -void CMessage::save(SimpleFile *file, int indent) const { +void CMessage::save(SimpleFile *file, int indent) { file->writeNumberLine(0, indent); } diff --git a/engines/titanic/messages/messages.h b/engines/titanic/messages/messages.h index d456714179..278fac1fbd 100644 --- a/engines/titanic/messages/messages.h +++ b/engines/titanic/messages/messages.h @@ -123,7 +123,7 @@ public: /** * Save the data for the class to file */ - virtual void save(SimpleFile *file, int indent) const; + virtual void save(SimpleFile *file, int indent); /** * Load the data for the class from file diff --git a/engines/titanic/messages/service_elevator_door.cpp b/engines/titanic/messages/service_elevator_door.cpp index e771f14484..748790e4aa 100644 --- a/engines/titanic/messages/service_elevator_door.cpp +++ b/engines/titanic/messages/service_elevator_door.cpp @@ -29,7 +29,7 @@ CServiceElevatorDoor::CServiceElevatorDoor() : CDoorAutoSoundEvent() { _string2 = "z#32.wav"; } -void CServiceElevatorDoor::save(SimpleFile *file, int indent) const { +void CServiceElevatorDoor::save(SimpleFile *file, int indent) { file->writeNumberLine(1, indent); file->writeQuotedLine(_string2, indent); file->writeQuotedLine(_string1, indent); diff --git a/engines/titanic/messages/service_elevator_door.h b/engines/titanic/messages/service_elevator_door.h index ac5cf5148d..104b5735f1 100644 --- a/engines/titanic/messages/service_elevator_door.h +++ b/engines/titanic/messages/service_elevator_door.h @@ -35,7 +35,7 @@ public: /** * Save the data for the class to file */ - virtual void save(SimpleFile *file, int indent) const; + virtual void save(SimpleFile *file, int indent); /** * Load the data for the class from file |