DOM: Partial DOM match is no longer an error
This commit is contained in:
12
src/DOM.cpp
12
src/DOM.cpp
@@ -136,8 +136,8 @@ bool getDOM (const std::string& name, Variant& value)
|
|||||||
: context.getHeight ()));
|
: context.getHeight ()));
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
else
|
|
||||||
throw format (STRING_DOM_UNREC, name);
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
// context.*
|
// context.*
|
||||||
@@ -177,8 +177,8 @@ bool getDOM (const std::string& name, Variant& value)
|
|||||||
: context.getHeight ()));
|
: context.getHeight ()));
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
else
|
|
||||||
throw format (STRING_DOM_UNREC, name);
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
// system. --> Implement locally.
|
// system. --> Implement locally.
|
||||||
@@ -198,8 +198,8 @@ bool getDOM (const std::string& name, Variant& value)
|
|||||||
value = Variant (osName ());
|
value = Variant (osName ());
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
else
|
|
||||||
throw format (STRING_DOM_UNREC, name);
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Empty string if nothing is found.
|
// Empty string if nothing is found.
|
||||||
|
|||||||
Reference in New Issue
Block a user