aboutsummaryrefslogtreecommitdiff
path: root/engines/wintermute/ad/ad_waypoint_group.cpp
diff options
context:
space:
mode:
authorEinar Johan Trøan Sømåen2012-09-29 00:47:12 +0200
committerEinar Johan Trøan Sømåen2012-09-29 00:47:12 +0200
commitafc21941e37a7481f5fe050d220968bdce43c873 (patch)
treef26f49578f9b10aa19aabcf8704f6e372a93c713 /engines/wintermute/ad/ad_waypoint_group.cpp
parent67a7f5b3063c8d9634f43ee36ba26b18c2e6cd11 (diff)
downloadscummvm-rg350-afc21941e37a7481f5fe050d220968bdce43c873.tar.gz
scummvm-rg350-afc21941e37a7481f5fe050d220968bdce43c873.tar.bz2
scummvm-rg350-afc21941e37a7481f5fe050d220968bdce43c873.zip
WINTERMUTE: Make scGetProperty use Common::String& instead of const char*
Diffstat (limited to 'engines/wintermute/ad/ad_waypoint_group.cpp')
-rw-r--r--engines/wintermute/ad/ad_waypoint_group.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/engines/wintermute/ad/ad_waypoint_group.cpp b/engines/wintermute/ad/ad_waypoint_group.cpp
index f80fa7e45d..81493ce769 100644
--- a/engines/wintermute/ad/ad_waypoint_group.cpp
+++ b/engines/wintermute/ad/ad_waypoint_group.cpp
@@ -206,13 +206,13 @@ bool AdWaypointGroup::persist(BasePersistenceManager *persistMgr) {
//////////////////////////////////////////////////////////////////////////
-ScValue *AdWaypointGroup::scGetProperty(const char *name) {
+ScValue *AdWaypointGroup::scGetProperty(const Common::String &name) {
_scValue->setNULL();
//////////////////////////////////////////////////////////////////////////
// Type
//////////////////////////////////////////////////////////////////////////
- if (strcmp(name, "Type") == 0) {
+ if (name == "Type") {
_scValue->setString("waypoint-group");
return _scValue;
}
@@ -220,7 +220,7 @@ ScValue *AdWaypointGroup::scGetProperty(const char *name) {
//////////////////////////////////////////////////////////////////////////
// Active
//////////////////////////////////////////////////////////////////////////
- else if (strcmp(name, "Active") == 0) {
+ else if (name == "Active") {
_scValue->setBool(_active);
return _scValue;
} else {