From ba8bc2e40b94aa6055222550651452c3645c2515 Mon Sep 17 00:00:00 2001 From: uruk Date: Sun, 8 Jun 2014 12:55:19 +0200 Subject: CGE2: Rework empty-checks of strings. --- engines/cge2/cge2_main.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'engines/cge2/cge2_main.cpp') diff --git a/engines/cge2/cge2_main.cpp b/engines/cge2/cge2_main.cpp index e256d72db6..20b16fa227 100644 --- a/engines/cge2/cge2_main.cpp +++ b/engines/cge2/cge2_main.cpp @@ -168,7 +168,7 @@ void CGE2Engine::loadSprite(const char *fname, int ref, int scene, V3D &pos) { Common::String line; for (line = sprf.readLine(); !sprf.eos(); line = sprf.readLine()){ - if (line.size() == 0) + if (line.empty()) continue; Common::strlcpy(tmpStr, line.c_str(), sizeof(tmpStr)); @@ -313,7 +313,7 @@ void CGE2Engine::loadScript(const char *fname) { Common::String line; for (line = scrf.readLine(); !scrf.eos(); line = scrf.readLine()) { - if (line.size() == 0) + if (line.empty()) continue; char *p; -- cgit v1.2.3