From 61ec84b1d88a5972cd8cc7ed0f5ad9f0ae92c27c Mon Sep 17 00:00:00 2001
From: Nat Goodspeed <nat@lindenlab.com>
Date: Wed, 6 May 2020 16:16:06 -0400
Subject: [PATCH] DRTVWR-476: Add llsd::clone(), llsd::shallow() aliases

for new llsd_clone(), llsd_shallow() functions.
---
 indra/llcommon/llsdutil.h | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/indra/llcommon/llsdutil.h b/indra/llcommon/llsdutil.h
index 2ff9ecdf89d..84be95ba549 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 <>
-- 
GitLab