aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorSignpostMarv2012-08-24 13:52:30 +0100
committerMelanie2012-08-24 17:44:14 +0100
commitd188272462f2c8d3e67aead26bb5b15ab243cdab (patch)
treebf674ac8cd9b3af0ef5bf631a4aae9a5eb48d6f3
parentadding sqlite journal files to .gitignore (diff)
downloadopensim-SC_OLD-d188272462f2c8d3e67aead26bb5b15ab243cdab.zip
opensim-SC_OLD-d188272462f2c8d3e67aead26bb5b15ab243cdab.tar.gz
opensim-SC_OLD-d188272462f2c8d3e67aead26bb5b15ab243cdab.tar.bz2
opensim-SC_OLD-d188272462f2c8d3e67aead26bb5b15ab243cdab.tar.xz
refactoring using List.ConvertAll<string>
-rw-r--r--OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs11
1 files changed, 5 insertions, 6 deletions
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
index 0d275f7..a98fb04 100644
--- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
+++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
@@ -5170,17 +5170,16 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
5170 { 5170 {
5171 5171
5172 string ret = String.Empty; 5172 string ret = String.Empty;
5173 int x = 0;
5174 5173
5175 m_host.AddScriptLPS(1); 5174 m_host.AddScriptLPS(1);
5176 5175
5177 if (src.Data.Length > 0) 5176 if (src.Data.Length > 0)
5178 { 5177 {
5179 ret = src.Data[x++].ToString(); 5178 ret = string.Join(", ",
5180 for (; x < src.Data.Length; x++) 5179 (new List<object>(src.Data)).ConvertAll<string>(o =>
5181 { 5180 {
5182 ret += ", "+src.Data[x].ToString(); 5181 return o.ToString();
5183 } 5182 }).ToArray());
5184 } 5183 }
5185 5184
5186 return ret; 5185 return ret;