aboutsummaryrefslogtreecommitdiff
path: root/engines/pink
diff options
context:
space:
mode:
authorEugene Sandulenko2018-06-29 09:37:44 +0200
committerEugene Sandulenko2018-06-29 09:37:44 +0200
commit66d8fca8b38cc8928e21ce30ffae1a05eb02c1b9 (patch)
treea68a4d71c8cb8c6024524b433e63e9fbe475d689 /engines/pink
parent7e82e748bfbc617d4298cc01fd0d3ac3e7a78592 (diff)
downloadscummvm-rg350-66d8fca8b38cc8928e21ce30ffae1a05eb02c1b9.tar.gz
scummvm-rg350-66d8fca8b38cc8928e21ce30ffae1a05eb02c1b9.tar.bz2
scummvm-rg350-66d8fca8b38cc8928e21ce30ffae1a05eb02c1b9.zip
PINK: Fix warnings
Diffstat (limited to 'engines/pink')
-rw-r--r--engines/pink/director.cpp4
-rw-r--r--engines/pink/objects/actions/action_loop.cpp2
-rw-r--r--engines/pink/utils.h16
3 files changed, 11 insertions, 11 deletions
diff --git a/engines/pink/director.cpp b/engines/pink/director.cpp
index bb781a5c27..b8c9a1bbca 100644
--- a/engines/pink/director.cpp
+++ b/engines/pink/director.cpp
@@ -82,9 +82,9 @@ void Director::clear() {
_sprites.resize(0);
}
-void Director::pause(bool pause) {
+void Director::pause(bool pause_) {
for (uint i = 0; i < _sprites.size() ; ++i) {
- _sprites[i]->pause(pause);
+ _sprites[i]->pause(pause_);
}
}
diff --git a/engines/pink/objects/actions/action_loop.cpp b/engines/pink/objects/actions/action_loop.cpp
index c54d06fac3..09bea7c6ec 100644
--- a/engines/pink/objects/actions/action_loop.cpp
+++ b/engines/pink/objects/actions/action_loop.cpp
@@ -55,7 +55,7 @@ void ActionLoop::toConsole() {
void ActionLoop::update() {
ActionCEL::update();
- int frame = _decoder.getCurFrame();
+ uint frame = _decoder.getCurFrame();
if (!_inLoop) {
if (frame < _startFrame) {
diff --git a/engines/pink/utils.h b/engines/pink/utils.h
index d55b8d95ce..2cd8719175 100644
--- a/engines/pink/utils.h
+++ b/engines/pink/utils.h
@@ -31,9 +31,9 @@ template <typename T>
class Array : public Common::Array<T>, public Object {
public:
void deserialize(Archive &archive) {
- uint size = archive.readWORD();
- this->resize(size);
- for (uint i = 0; i < size; ++i) {
+ uint size_ = archive.readWORD();
+ this->resize(size_);
+ for (uint i = 0; i < size_; ++i) {
this->data()[i] = reinterpret_cast<T>(archive.readObject()); // dynamic_cast needs to know complete type
}
}
@@ -42,9 +42,9 @@ public:
class StringArray : public Common::StringArray {
public:
void deserialize(Archive &archive) {
- uint32 size = archive.readWORD();
- this->resize(size);
- for (uint i = 0; i < size; ++i) {
+ uint32 size_ = archive.readWORD();
+ this->resize(size_);
+ for (uint i = 0; i < size_; ++i) {
this->data()[i] = archive.readString();
}
}
@@ -61,8 +61,8 @@ public:
}
void deserialize(Archive &archive) {
- uint size = archive.readWORD();
- for (uint i = 0; i < size; ++i) {
+ uint size_ = archive.readWORD();
+ for (uint i = 0; i < size_; ++i) {
Common::String key = archive.readString();
Common::String val = archive.readString();
setVal(key, val);