diff options
author | Paul Gilbert | 2016-03-18 23:18:59 -0400 |
---|---|---|
committer | Paul Gilbert | 2016-03-18 23:18:59 -0400 |
commit | 4f5202f958d55ccfda6e67a6b8933630de240e87 (patch) | |
tree | 4054258dcea5b428a49534a9453e66dc07864ad0 /engines/titanic/game/gondolier | |
parent | 7a38b51357ba581fe51a392a031d09dd238039e8 (diff) | |
download | scummvm-rg350-4f5202f958d55ccfda6e67a6b8933630de240e87.tar.gz scummvm-rg350-4f5202f958d55ccfda6e67a6b8933630de240e87.tar.bz2 scummvm-rg350-4f5202f958d55ccfda6e67a6b8933630de240e87.zip |
TITANIC: Remove const prefix from passed messages
Turns out that some of the messages have properties that the objects
that handle them can set. For example, the CMouseDragStartMsg has a
_dragItem property that an item that allows dragging will explicitly
set, allowing the input handler to keep track of what was dragged.
Diffstat (limited to 'engines/titanic/game/gondolier')
-rw-r--r-- | engines/titanic/game/gondolier/gondolier_mixer.cpp | 2 | ||||
-rw-r--r-- | engines/titanic/game/gondolier/gondolier_mixer.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/engines/titanic/game/gondolier/gondolier_mixer.cpp b/engines/titanic/game/gondolier/gondolier_mixer.cpp index 391c513ccc..f4fb655cf2 100644 --- a/engines/titanic/game/gondolier/gondolier_mixer.cpp +++ b/engines/titanic/game/gondolier/gondolier_mixer.cpp @@ -56,7 +56,7 @@ void CGondolierMixer::load(SimpleFile *file) { CGondolierBase::load(file); } -bool CGondolierMixer::handleEvent(const CEnterRoomMsg &msg) { +bool CGondolierMixer::handleEvent(CEnterRoomMsg &msg) { CTreeItem *parent = getParent(); if (parent == msg._room) msg.execute(parent); diff --git a/engines/titanic/game/gondolier/gondolier_mixer.h b/engines/titanic/game/gondolier/gondolier_mixer.h index ce8959b77a..1288290d6f 100644 --- a/engines/titanic/game/gondolier/gondolier_mixer.h +++ b/engines/titanic/game/gondolier/gondolier_mixer.h @@ -38,7 +38,7 @@ private: CString _string2; int _fieldE4; protected: - virtual bool handleEvent(const CEnterRoomMsg &msg); + virtual bool handleEvent(CEnterRoomMsg &msg); public: CLASSDEF CGondolierMixer(); |