aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarisa-Chan2014-11-12 14:40:29 +0600
committerMarisa-Chan2014-11-12 14:40:29 +0600
commit9b88ab15dfff651007f9c6bcad1f5e646a4fa662 (patch)
tree13336b356859948d626b525f8211ff4f63264d4b
parentf55f4af2937f77c3dc9760b000d2e4806477c1a0 (diff)
downloadscummvm-rg350-9b88ab15dfff651007f9c6bcad1f5e646a4fa662.tar.gz
scummvm-rg350-9b88ab15dfff651007f9c6bcad1f5e646a4fa662.tar.bz2
scummvm-rg350-9b88ab15dfff651007f9c6bcad1f5e646a4fa662.zip
ZVISION: Make strings const in functions declaration
-rw-r--r--engines/zvision/cursors/cursor_manager.cpp2
-rw-r--r--engines/zvision/cursors/cursor_manager.h2
-rw-r--r--engines/zvision/scripting/control.cpp2
-rw-r--r--engines/zvision/scripting/control.h2
4 files changed, 4 insertions, 4 deletions
diff --git a/engines/zvision/cursors/cursor_manager.cpp b/engines/zvision/cursors/cursor_manager.cpp
index cfb4baf636..564ffd25c5 100644
--- a/engines/zvision/cursors/cursor_manager.cpp
+++ b/engines/zvision/cursors/cursor_manager.cpp
@@ -140,7 +140,7 @@ void CursorManager::changeCursor(int id) {
}
}
-int CursorManager::getCursorId(Common::String &name) {
+int CursorManager::getCursorId(const Common::String &name) {
for (int i = 0; i < NUM_CURSORS; i++)
if (name.equals(_cursorNames[i]))
return i;
diff --git a/engines/zvision/cursors/cursor_manager.h b/engines/zvision/cursors/cursor_manager.h
index 5392fd5e03..a6f77cec64 100644
--- a/engines/zvision/cursors/cursor_manager.h
+++ b/engines/zvision/cursors/cursor_manager.h
@@ -97,7 +97,7 @@ public:
* @return Id of cursor or idle cursor id if not found
*/
- int getCursorId(Common::String &name);
+ int getCursorId(const Common::String &name);
/**
* Load cursor for item by id, and try to change cursor to item cursor if it's not 0
diff --git a/engines/zvision/scripting/control.cpp b/engines/zvision/scripting/control.cpp
index 4567495725..c746f00831 100644
--- a/engines/zvision/scripting/control.cpp
+++ b/engines/zvision/scripting/control.cpp
@@ -105,7 +105,7 @@ void Control::parseTiltControl(ZVision *engine, Common::SeekableReadStream &stre
renderTable->generateRenderTable();
}
-void Control::getParams(Common::String &input_str, Common::String &parameter, Common::String &values) {
+void Control::getParams(const Common::String &input_str, Common::String &parameter, Common::String &values) {
const char *chrs = input_str.c_str();
uint lbr;
diff --git a/engines/zvision/scripting/control.h b/engines/zvision/scripting/control.h
index 8708f033af..28c7348d98 100644
--- a/engines/zvision/scripting/control.h
+++ b/engines/zvision/scripting/control.h
@@ -127,7 +127,7 @@ protected:
uint32 _key;
int32 _venus_id;
- void getParams(Common::String &input_str, Common::String &parameter, Common::String &values);
+ void getParams(const Common::String &input_str, Common::String &parameter, Common::String &values);
// Static member functions
public:
static void parseFlatControl(ZVision *engine);