mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-08-26 15:47:19 +02:00
DOM: Partial DOM match is no longer an error
This commit is contained in:
parent
243067e2ae
commit
06dc1f6c42
1 changed files with 6 additions and 6 deletions
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.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue