Skip to content
Snippets Groups Projects
Commit e6a9523d authored by Nat Goodspeed's avatar Nat Goodspeed
Browse files

SL-11216: Allow llsd::drill() to accept LLSD() as (empty) path.

Before this change, you had to literally pass LLSD::emptyArray() to get no-op
behavior.
parent 378e4fae
No related branches found
No related tags found
No related merge requests found
......@@ -691,9 +691,10 @@ namespace llsd
LLSD& drill(LLSD& blob, const LLSD& rawPath)
{
// Treat rawPath uniformly as an array. If it's not already an array,
// store it as the only entry in one.
// store it as the only entry in one. (But let's say Undefined means an
// empty array.)
LLSD path;
if (rawPath.isArray())
if (rawPath.isArray() || rawPath.isUndefined())
{
path = rawPath;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment