mirror of
https://github.com/pocoproject/poco.git
synced 2025-10-24 00:49:46 +02:00
SF 1969276 DynamicAny("") should be false; added operator!
This commit is contained in:
@@ -2214,12 +2214,15 @@ public:
|
||||
void convert(bool& val) const
|
||||
{
|
||||
static const std::string VAL_FALSE("false");
|
||||
static const std::string VAL_INTFALSE("0");
|
||||
static const std::string VAL_INT_FALSE("0");
|
||||
|
||||
if (_val == VAL_INTFALSE || (icompare(_val, VAL_FALSE) == 0))
|
||||
if (_val.empty() ||
|
||||
_val == VAL_INT_FALSE ||
|
||||
(icompare(_val, VAL_FALSE) == 0))
|
||||
{
|
||||
val = false;
|
||||
else
|
||||
val = true;
|
||||
}
|
||||
else val = true;
|
||||
}
|
||||
|
||||
void convert(float& val) const
|
||||
|
||||
Reference in New Issue
Block a user