Expressions
- DOM::get now returns the input name by default, rather than "", which was the cause of many filter elements not working. - Modified Variant to have no private data, which means fewer copies of Variants and less code. - Eliminated Variant::operator^ - not needed.
This commit is contained in:
@@ -156,7 +156,7 @@ const std::string DOM::get (const std::string& name)
|
||||
throw format (STRING_DOM_UNREC, name);
|
||||
}
|
||||
|
||||
return "";
|
||||
return name;
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
@@ -300,7 +300,6 @@ void DOM::set (const std::string& name, const std::string& value)
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
// TODO This should return a Variant.
|
||||
bool DOM::is_primitive (const std::string& input)
|
||||
{
|
||||
std::string s;
|
||||
|
||||
Reference in New Issue
Block a user