Fixed typo in inline template specialization code.

This commit is contained in:
Vincent Richard 2005-06-28 20:14:59 +00:00
parent 96a75ae133
commit 69674e723a

View File

@ -379,13 +379,13 @@ public:
template <> template <>
static const bool valueFromString(const string& value) static const bool valueFromString(const string& value)
{ {
if (utility::stringUtils::toLower(m_value) == "true") if (utility::stringUtils::toLower(value) == "true")
return true; return true;
else else
{ {
int val = 0; int val = 0;
std::istringstream iss(m_value); std::istringstream iss(value);
iss >> val; iss >> val;
return (!iss.fail() && val != 0); return (!iss.fail() && val != 0);