aboutsummaryrefslogtreecommitdiff
path: root/engines/titanic/support
diff options
context:
space:
mode:
authorPaul Gilbert2016-06-29 19:53:16 -0400
committerPaul Gilbert2016-07-15 19:25:58 -0400
commit5ccc0a66da38d23520234e7060efaf966d3345b9 (patch)
tree9cff2311be2b8e9cd1f62e76ae74e15f3d4c18fc /engines/titanic/support
parenta82bcd3ce7ef0ae604af45fdb56668fca47e7137 (diff)
downloadscummvm-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/support')
-rw-r--r--engines/titanic/support/movie_clip.cpp2
-rw-r--r--engines/titanic/support/movie_clip.h2
-rw-r--r--engines/titanic/support/movie_event.cpp2
-rw-r--r--engines/titanic/support/movie_event.h2
-rw-r--r--engines/titanic/support/movie_range_info.cpp2
-rw-r--r--engines/titanic/support/movie_range_info.h2
-rw-r--r--engines/titanic/support/time_event_info.cpp2
-rw-r--r--engines/titanic/support/time_event_info.h2
8 files changed, 8 insertions, 8 deletions
diff --git a/engines/titanic/support/movie_clip.cpp b/engines/titanic/support/movie_clip.cpp
index da655ce76a..2d3187b000 100644
--- a/engines/titanic/support/movie_clip.cpp
+++ b/engines/titanic/support/movie_clip.cpp
@@ -32,7 +32,7 @@ CMovieClip::CMovieClip(const CString &name, int startFrame, int endFrame):
ListItem(), _name(name), _startFrame(startFrame), _endFrame(endFrame) {
}
-void CMovieClip::save(SimpleFile *file, int indent) const {
+void CMovieClip::save(SimpleFile *file, int indent) {
file->writeNumberLine(2, indent);
file->writeQuotedLine("Clip", indent);
file->writeQuotedLine(_name, indent);
diff --git a/engines/titanic/support/movie_clip.h b/engines/titanic/support/movie_clip.h
index 0b1106f420..813996bbf0 100644
--- a/engines/titanic/support/movie_clip.h
+++ b/engines/titanic/support/movie_clip.h
@@ -56,7 +56,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/support/movie_event.cpp b/engines/titanic/support/movie_event.cpp
index b3e788e6fc..870a06fe6f 100644
--- a/engines/titanic/support/movie_event.cpp
+++ b/engines/titanic/support/movie_event.cpp
@@ -36,7 +36,7 @@ CMovieEvent::CMovieEvent(const CMovieEvent *src) {
_field1C = src->_field1C;
}
-void CMovieEvent::save(SimpleFile *file, int indent) const {
+void CMovieEvent::save(SimpleFile *file, int indent) {
file->writeNumberLine(0, indent);
file->writeNumberLine(_fieldC, indent + 1);
file->writeNumberLine(_field10, indent + 1);
diff --git a/engines/titanic/support/movie_event.h b/engines/titanic/support/movie_event.h
index 5c62220919..ed72e2d349 100644
--- a/engines/titanic/support/movie_event.h
+++ b/engines/titanic/support/movie_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/support/movie_range_info.cpp b/engines/titanic/support/movie_range_info.cpp
index ab34082540..d48bab1df6 100644
--- a/engines/titanic/support/movie_range_info.cpp
+++ b/engines/titanic/support/movie_range_info.cpp
@@ -45,7 +45,7 @@ CMovieRangeInfo::CMovieRangeInfo(const CMovieRangeInfo *src) : ListItem() {
}
}
-void CMovieRangeInfo::save(SimpleFile *file, int indent) const {
+void CMovieRangeInfo::save(SimpleFile *file, int indent) {
file->writeNumberLine(0, indent);
file->writeQuotedLine(_movieName, indent + 1);
file->writeNumberLine(_endFrame, indent + 1);
diff --git a/engines/titanic/support/movie_range_info.h b/engines/titanic/support/movie_range_info.h
index 3f077c717e..2776ac2851 100644
--- a/engines/titanic/support/movie_range_info.h
+++ b/engines/titanic/support/movie_range_info.h
@@ -46,7 +46,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/support/time_event_info.cpp b/engines/titanic/support/time_event_info.cpp
index c3312de7d7..041a01ccfb 100644
--- a/engines/titanic/support/time_event_info.cpp
+++ b/engines/titanic/support/time_event_info.cpp
@@ -106,7 +106,7 @@ CTimeEventInfo::CTimeEventInfo(uint ticks, uint f14, uint firstDuration,
_id = _nextId++;
}
-void CTimeEventInfo::save(SimpleFile *file, int indent) const {
+void CTimeEventInfo::save(SimpleFile *file, int indent) {
file->writeNumberLine(0, indent);
CString targetName;
diff --git a/engines/titanic/support/time_event_info.h b/engines/titanic/support/time_event_info.h
index ee923f5fcb..b436f87f65 100644
--- a/engines/titanic/support/time_event_info.h
+++ b/engines/titanic/support/time_event_info.h
@@ -72,7 +72,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