aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorwhiterandrek2018-06-20 18:01:50 +0300
committerEugene Sandulenko2018-06-28 23:51:32 +0200
commit914ee715ebd3ebabb1f9454daa24c245a1bec023 (patch)
tree72efe979c1a9b5883254674db3769d754aeb92a1 /engines
parent0f2654fb0c7fe383814357b84deb89dad99ff34c (diff)
downloadscummvm-rg350-914ee715ebd3ebabb1f9454daa24c245a1bec023.tar.gz
scummvm-rg350-914ee715ebd3ebabb1f9454daa24c245a1bec023.tar.bz2
scummvm-rg350-914ee715ebd3ebabb1f9454daa24c245a1bec023.zip
PINK: fix warning
Diffstat (limited to 'engines')
-rw-r--r--engines/pink/objects/actors/audio_info_pda_button.cpp4
-rw-r--r--engines/pink/objects/actors/audio_info_pda_button.h4
-rw-r--r--engines/pink/objects/actors/lead_actor.cpp2
-rw-r--r--engines/pink/objects/actors/lead_actor.h2
-rw-r--r--engines/pink/objects/actors/supporting_actor.cpp4
-rw-r--r--engines/pink/objects/actors/supporting_actor.h4
6 files changed, 10 insertions, 10 deletions
diff --git a/engines/pink/objects/actors/audio_info_pda_button.cpp b/engines/pink/objects/actors/audio_info_pda_button.cpp
index a5505de0f6..a2adad0437 100644
--- a/engines/pink/objects/actors/audio_info_pda_button.cpp
+++ b/engines/pink/objects/actors/audio_info_pda_button.cpp
@@ -33,11 +33,11 @@ void AudioInfoPDAButton::toConsole() {
}
}
-void AudioInfoPDAButton::onMouseOver(Common::Point point, CursorMgr *mgr) {
+void AudioInfoPDAButton::onMouseOver(const Common::Point point, CursorMgr *mgr) {
mgr->setCursor(kClickableFirstFrameCursor, point, Common::String());
}
-void AudioInfoPDAButton::onHover(Common::Point point, const Common::String &itemName, CursorMgr *cursorMgr) {
+void AudioInfoPDAButton::onHover(const Common::Point point, const Common::String &itemName, CursorMgr *cursorMgr) {
onMouseOver(point, cursorMgr);
}
diff --git a/engines/pink/objects/actors/audio_info_pda_button.h b/engines/pink/objects/actors/audio_info_pda_button.h
index 4631bafd39..fbff88f65b 100644
--- a/engines/pink/objects/actors/audio_info_pda_button.h
+++ b/engines/pink/objects/actors/audio_info_pda_button.h
@@ -36,8 +36,8 @@ class AudioInfoPDAButton : public Actor {
public:
void toConsole();
- void onMouseOver(Common::Point point, CursorMgr *mgr);
- void onHover(Common::Point point, const Common::String &itemName, CursorMgr *cursorMgr) override;
+ void onMouseOver(const Common::Point point, CursorMgr *mgr);
+ void onHover(const Common::Point point, const Common::String &itemName, CursorMgr *cursorMgr) override;
bool onLeftClickMessage() override;
};
diff --git a/engines/pink/objects/actors/lead_actor.cpp b/engines/pink/objects/actors/lead_actor.cpp
index 549a8f265e..1bc49a0786 100644
--- a/engines/pink/objects/actors/lead_actor.cpp
+++ b/engines/pink/objects/actors/lead_actor.cpp
@@ -251,7 +251,7 @@ void LeadActor::onRightButtonClick(const Common::Point point) {
}
-void LeadActor::onMouseMove(Common::Point point) {
+void LeadActor::onMouseMove(const Common::Point point) {
if (_state != kPDA)
updateCursor(point);
else
diff --git a/engines/pink/objects/actors/lead_actor.h b/engines/pink/objects/actors/lead_actor.h
index e767653d7f..8c2cb7a7b1 100644
--- a/engines/pink/objects/actors/lead_actor.h
+++ b/engines/pink/objects/actors/lead_actor.h
@@ -145,7 +145,7 @@ public:
void onVariableSet() override;
protected:
- void updateCursor(Common::Point point) override;
+ void updateCursor(const Common::Point point) override;
bool sendUseClickMessage(Actor *actor) override;
diff --git a/engines/pink/objects/actors/supporting_actor.cpp b/engines/pink/objects/actors/supporting_actor.cpp
index 7bd7e3afbb..3bca41c1d5 100644
--- a/engines/pink/objects/actors/supporting_actor.cpp
+++ b/engines/pink/objects/actors/supporting_actor.cpp
@@ -54,7 +54,7 @@ bool SupportingActor::isUseClickHandlers(InventoryItem *item) {
return _handlerMgr.isUseClickHandler(this, item->getName());
}
-void SupportingActor::onMouseOver(Common::Point point, CursorMgr *mgr) {
+void SupportingActor::onMouseOver(const Common::Point point, CursorMgr *mgr) {
if (isLeftClickHandlers()) {
if (!_cursor.empty())
mgr->setCursor(_cursor, point);
@@ -64,7 +64,7 @@ void SupportingActor::onMouseOver(Common::Point point, CursorMgr *mgr) {
Actor::onMouseOver(point, mgr);
}
-void SupportingActor::onHover(Common::Point point, const Common::String &itemName, CursorMgr *cursorMgr) {
+void SupportingActor::onHover(const Common::Point point, const Common::String &itemName, CursorMgr *cursorMgr) {
Common::String item = itemName;
if (_handlerMgr.isUseClickHandler(this, itemName))
item += kClickable;
diff --git a/engines/pink/objects/actors/supporting_actor.h b/engines/pink/objects/actors/supporting_actor.h
index 7f53a3e9c0..1205370c34 100644
--- a/engines/pink/objects/actors/supporting_actor.h
+++ b/engines/pink/objects/actors/supporting_actor.h
@@ -40,8 +40,8 @@ public:
bool isLeftClickHandlers() override;
bool isUseClickHandlers(InventoryItem *item) override;
- void onMouseOver(Common::Point point, CursorMgr *mgr) override;
- void onHover(Common::Point point, const Common::String &itemName, CursorMgr *cursorMgr) override;
+ void onMouseOver(const Common::Point point, CursorMgr *mgr) override;
+ void onHover(const Common::Point point, const Common::String &itemName, CursorMgr *cursorMgr) override;
void onTimerMessage() override;
bool onLeftClickMessage() override;