summaryrefslogtreecommitdiff
path: root/indra/llcommon
diff options
context:
space:
mode:
authorNat Goodspeed <nat@lindenlab.com>2020-05-06 16:16:06 -0400
committerNat Goodspeed <nat@lindenlab.com>2020-05-06 16:16:06 -0400
commit61ec84b1d88a5972cd8cc7ed0f5ad9f0ae92c27c (patch)
treef65c5376f772a003ec54af20aaaca99684d4fd7e /indra/llcommon
parentca6f09292925a7bd936338cb598efb3ddc8524bf (diff)
DRTVWR-476: Add llsd::clone(), llsd::shallow() aliases
for new llsd_clone(), llsd_shallow() functions.
Diffstat (limited to 'indra/llcommon')
-rw-r--r--indra/llcommon/llsdutil.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/indra/llcommon/llsdutil.h b/indra/llcommon/llsdutil.h
index 2ff9ecdf89..84be95ba54 100644
--- a/indra/llcommon/llsdutil.h
+++ b/indra/llcommon/llsdutil.h
@@ -547,6 +547,16 @@ LLSD llsd_clone(LLSD value, LLSD filter = LLSD());
// the filter parameter.
LLSD llsd_shallow(LLSD value, LLSD filter = LLSD());
+namespace llsd
+{
+
+// llsd namespace aliases
+inline
+LLSD clone (LLSD value, LLSD filter=LLSD()) { return llsd_clone (value, filter); }
+inline
+LLSD shallow(LLSD value, LLSD filter=LLSD()) { return llsd_shallow(value, filter); }
+
+} // namespace llsd
// Specialization for generating a hash value from an LLSD block.
template <>