From b2fa7e58a395b883e7c59ecb1f29f8fc6607885b Mon Sep 17 00:00:00 2001 From: Max Horn Date: Thu, 28 Oct 2010 00:26:25 +0000 Subject: SWORD25: Start to rename read/write methods of *PersistenceBlock classes All should be renamed to reduce risk of accidental incorrect use. svn-id: r53899 --- engines/sword25/input/inputengine.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'engines/sword25/input') diff --git a/engines/sword25/input/inputengine.cpp b/engines/sword25/input/inputengine.cpp index 7c110a92bb..8dc98ba3fb 100644 --- a/engines/sword25/input/inputengine.cpp +++ b/engines/sword25/input/inputengine.cpp @@ -243,13 +243,13 @@ bool InputEngine::persist(OutputPersistenceBlock &writer) { // Note: We do this only for compatibility with older engines resp. // the original engine. writer.write((uint)1); - writer.write(Common::String("LuaCommandCB")); + writer.writeString("LuaCommandCB"); // Write out the number of command callbacks and their names. // Note: We do this only for compatibility with older engines resp. // the original engine. writer.write((uint)1); - writer.write(Common::String("LuaCharacterCB")); + writer.writeString("LuaCharacterCB"); return true; } @@ -264,7 +264,7 @@ bool InputEngine::unpersist(InputPersistenceBlock &reader) { reader.read(commandCallbackCount); assert(commandCallbackCount == 1); - reader.read(callbackFunctionName); + reader.readString(callbackFunctionName); assert(callbackFunctionName == "LuaCommandCB"); // Read number of character callbacks and their names. @@ -274,7 +274,7 @@ bool InputEngine::unpersist(InputPersistenceBlock &reader) { reader.read(characterCallbackCount); assert(characterCallbackCount == 1); - reader.read(callbackFunctionName); + reader.readString(callbackFunctionName); assert(callbackFunctionName == "LuaCharacterCB"); return reader.isGood(); -- cgit v1.2.3