From 3f4226eaac5d0d30be1f4ca5d5cf010c98a7ce7d Mon Sep 17 00:00:00 2001 From: Vincent Richard Date: Sun, 12 Oct 2008 10:05:28 +0000 Subject: Fixed compilation warnings. --- src/propertySet.cpp | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) (limited to 'src/propertySet.cpp') diff --git a/src/propertySet.cpp b/src/propertySet.cpp index 437468e7..c980d96d 100644 --- a/src/propertySet.cpp +++ b/src/propertySet.cpp @@ -95,7 +95,7 @@ void propertySet::parse(const string& props) for ( ; pos != end ; ) { // Skip white-spaces - for ( ; pos != end && parserHelpers::isSpace(*pos) ; ++pos); + for ( ; pos != end && parserHelpers::isSpace(*pos) ; ++pos) {} if (pos != end) { @@ -108,11 +108,11 @@ void propertySet::parse(const string& props) // Extract the property name const string::const_iterator optStart = pos; - for ( ; pos != end && *pos != '=' ; ++pos); + for ( ; pos != end && *pos != '=' ; ++pos) {} string::const_iterator optEnd = pos; - for ( ; optEnd != optStart && parserHelpers::isSpace(*(optEnd - 1)) ; --optEnd); + for ( ; optEnd != optStart && parserHelpers::isSpace(*(optEnd - 1)) ; --optEnd) {} const string option(optStart, optEnd); string value = "1"; @@ -122,7 +122,7 @@ void propertySet::parse(const string& props) ++pos; // skip '=' // Extract the value - for ( ; pos != end && parserHelpers::isSpace(*pos) ; ++pos); + for ( ; pos != end && parserHelpers::isSpace(*pos) ; ++pos) {} if (pos != end) { @@ -161,13 +161,13 @@ void propertySet::parse(const string& props) { const string::const_iterator valStart = pos; - for ( ; pos != end && !parserHelpers::isSpace(*pos) ; ++pos); + for ( ; pos != end && !parserHelpers::isSpace(*pos) ; ++pos) {} value = string(valStart, pos); } // Advance to the next ';' - for ( ; pos != end && (*pos != ';') ; ++pos); + for ( ; pos != end && (*pos != ';') ; ++pos) {} if (pos != end) ++pos; // skip ';' @@ -219,7 +219,7 @@ const propertySet::constPropertyProxy propertySet::operator[](const string& name } -const bool propertySet::hasProperty(const string& name) const +bool propertySet::hasProperty(const string& name) const { return (find(name) != NULL); } @@ -304,14 +304,14 @@ void propertySet::property::setValue(const bool& value) template <> -const string propertySet::property::getValue() const +string propertySet::property::getValue() const { return (m_value); } template <> -const bool propertySet::property::getValue() const +bool propertySet::property::getValue() const { if (utility::stringUtils::toLower(m_value) == "true") return true; @@ -332,21 +332,21 @@ const bool propertySet::property::getValue() const template <> -const string propertySet::valueFromString(const string& value) +string propertySet::valueFromString(const string& value) { return value; } template <> -const string propertySet::valueToString(const string& value) +string propertySet::valueToString(const string& value) { return value; } template <> -const bool propertySet::valueFromString(const string& value) +bool propertySet::valueFromString(const string& value) { if (utility::stringUtils::toLower(value) == "true") return true; @@ -365,7 +365,7 @@ const bool propertySet::valueFromString(const string& value) template <> -const string propertySet::valueToString(const bool& value) +string propertySet::valueToString(const bool& value) { return (value ? "true" : "false"); } -- cgit v1.2.3