diff options
author | Jacek Antonelli | 2008-08-15 23:45:50 -0500 |
---|---|---|
committer | Jacek Antonelli | 2008-08-15 23:45:50 -0500 |
commit | 2a4dea528f670b9bb1f77ef27a8a1dd16603d114 (patch) | |
tree | 95c68e362703c9099d571ecbdc6142b1cda1e005 /linden/indra/llcommon/llsdutil.h | |
parent | Second Life viewer sources 1.20.6 (diff) | |
download | meta-impy-2a4dea528f670b9bb1f77ef27a8a1dd16603d114.zip meta-impy-2a4dea528f670b9bb1f77ef27a8a1dd16603d114.tar.gz meta-impy-2a4dea528f670b9bb1f77ef27a8a1dd16603d114.tar.bz2 meta-impy-2a4dea528f670b9bb1f77ef27a8a1dd16603d114.tar.xz |
Second Life viewer sources 1.20.7
Diffstat (limited to 'linden/indra/llcommon/llsdutil.h')
-rw-r--r-- | linden/indra/llcommon/llsdutil.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/linden/indra/llcommon/llsdutil.h b/linden/indra/llcommon/llsdutil.h index c058185..ae6d694 100644 --- a/linden/indra/llcommon/llsdutil.h +++ b/linden/indra/llcommon/llsdutil.h | |||
@@ -101,4 +101,16 @@ BOOL compare_llsd_with_template( | |||
101 | const LLSD& template_llsd, | 101 | const LLSD& template_llsd, |
102 | LLSD& resultant_llsd); | 102 | LLSD& resultant_llsd); |
103 | 103 | ||
104 | // Simple function to copy data out of input & output iterators if | ||
105 | // there is no need for casting. | ||
106 | template<typename Input> LLSD llsd_copy_array(Input iter, Input end) | ||
107 | { | ||
108 | LLSD dest; | ||
109 | for (; iter != end; ++iter) | ||
110 | { | ||
111 | dest.append(*iter); | ||
112 | } | ||
113 | return dest; | ||
114 | } | ||
115 | |||
104 | #endif // LL_LLSDUTIL_H | 116 | #endif // LL_LLSDUTIL_H |