diff options
author | Benoit Foucher <benoit@zeroc.com> | 2008-04-25 12:25:28 +0200 |
---|---|---|
committer | Benoit Foucher <benoit@zeroc.com> | 2008-04-25 12:25:28 +0200 |
commit | 9ed9d3b18e2040091056ed3e10c52877a1edcc98 (patch) | |
tree | 6f4d5eff20a82b367218f3655bcee97289037a18 /cpp/src/IceGrid/Util.cpp | |
parent | http://bugzilla.zeroc.com/bugzilla/show_bug.cgi?id=3025 - Bogus IceStorm Make... (diff) | |
download | ice-9ed9d3b18e2040091056ed3e10c52877a1edcc98.tar.bz2 ice-9ed9d3b18e2040091056ed3e10c52877a1edcc98.tar.xz ice-9ed9d3b18e2040091056ed3e10c52877a1edcc98.zip |
Fixed bug 3039
Diffstat (limited to 'cpp/src/IceGrid/Util.cpp')
-rw-r--r-- | cpp/src/IceGrid/Util.cpp | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/cpp/src/IceGrid/Util.cpp b/cpp/src/IceGrid/Util.cpp index 3525eb7ba92..81675c30696 100644 --- a/cpp/src/IceGrid/Util.cpp +++ b/cpp/src/IceGrid/Util.cpp @@ -76,18 +76,16 @@ IceGrid::getProperty(const PropertyDescriptorSeq& properties, const string& name } bool -IceGrid::isSet(const PropertyDescriptorSeq& properties, const string& name) +IceGrid::hasProperty(const PropertyDescriptorSeq& properties, const string& name) { - bool result = false; - for(PropertyDescriptorSeq::const_iterator q = properties.begin(); q != properties.end(); ++q) { if(q->name == name) { - result = (q->value != ""); + return true; } } - return result; + return false; } PropertyDescriptor @@ -99,7 +97,6 @@ IceGrid::createProperty(const string& name, const string& value) return prop; } - int IceGrid::getMMVersion(const string& o) { |