diff options
author | Max Horn | 2010-10-28 00:26:25 +0000 |
---|---|---|
committer | Max Horn | 2010-10-28 00:26:25 +0000 |
commit | b2fa7e58a395b883e7c59ecb1f29f8fc6607885b (patch) | |
tree | 01e5d568b0d7fe4b42b0abca5c1f0fa80654e196 /engines/sword25/gfx/text.cpp | |
parent | cf3551525f4583ec8a5feb231cb25d81a9722853 (diff) | |
download | scummvm-rg350-b2fa7e58a395b883e7c59ecb1f29f8fc6607885b.tar.gz scummvm-rg350-b2fa7e58a395b883e7c59ecb1f29f8fc6607885b.tar.bz2 scummvm-rg350-b2fa7e58a395b883e7c59ecb1f29f8fc6607885b.zip |
SWORD25: Start to rename read/write methods of *PersistenceBlock classes
All should be renamed to reduce risk of accidental incorrect use.
svn-id: r53899
Diffstat (limited to 'engines/sword25/gfx/text.cpp')
-rw-r--r-- | engines/sword25/gfx/text.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/engines/sword25/gfx/text.cpp b/engines/sword25/gfx/text.cpp index 55a87a41d6..b8e12ba570 100644 --- a/engines/sword25/gfx/text.cpp +++ b/engines/sword25/gfx/text.cpp @@ -313,8 +313,8 @@ bool Text::persist(OutputPersistenceBlock &writer) { result &= RenderObject::persist(writer); writer.write(_modulationColor); - writer.write(_font); - writer.write(_text); + writer.writeString(_font); + writer.writeString(_text); writer.write(_autoWrap); writer.write(_autoWrapThreshold); @@ -335,11 +335,11 @@ bool Text::unpersist(InputPersistenceBlock &reader) { // So wird das Layout automatisch aktualisiert und auch alle anderen notwendigen Methoden ausgeführt. Common::String font; - reader.read(font); + reader.readString(font); setFont(font); Common::String text; - reader.read(text); + reader.readString(text); setText(text); bool autoWrap; |