aboutsummaryrefslogtreecommitdiff
path: root/engines/pink/objects/pages
diff options
context:
space:
mode:
authorwhiterandrek2018-05-21 13:57:01 +0300
committerEugene Sandulenko2018-06-28 23:51:32 +0200
commit8733e54cd413819f87cb470e6c645d1320a54bf2 (patch)
treef26d850ab3eebfe6e9fa9e0511e4c56cabf284c4 /engines/pink/objects/pages
parent39ed15d2f700575ad68c638808f9cf07dc786ec1 (diff)
downloadscummvm-rg350-8733e54cd413819f87cb470e6c645d1320a54bf2.tar.gz
scummvm-rg350-8733e54cd413819f87cb470e6c645d1320a54bf2.tar.bz2
scummvm-rg350-8733e54cd413819f87cb470e6c645d1320a54bf2.zip
PINK: remove the use of auto variables
Diffstat (limited to 'engines/pink/objects/pages')
-rw-r--r--engines/pink/objects/pages/page.cpp15
1 files changed, 6 insertions, 9 deletions
diff --git a/engines/pink/objects/pages/page.cpp b/engines/pink/objects/pages/page.cpp
index f2b8bb4a93..9c923e2ebb 100644
--- a/engines/pink/objects/pages/page.cpp
+++ b/engines/pink/objects/pages/page.cpp
@@ -38,15 +38,12 @@ void Page::load(Archive &archive) {
}
Actor *Page::findActor(const Common::String &name) {
- auto it = Common::find_if(_actors.begin(), _actors.end(), [&name]
- (Actor *actor) {
- return name == actor->getName();
- });
-
- if (it == _actors.end())
- return nullptr;
-
- return *it;
+ for (uint i = 0; i < _actors.size(); ++i) {
+ if (_actors[i]->getName() == name) {
+ return _actors[i];
+ }
+ }
+ return nullptr;
}
Sound *Page::loadSound(Common::String &fileName) {