diff options
author | SignpostMarv | 2012-08-24 13:52:30 +0100 |
---|---|---|
committer | Melanie | 2012-08-24 17:44:14 +0100 |
commit | d188272462f2c8d3e67aead26bb5b15ab243cdab (patch) | |
tree | bf674ac8cd9b3af0ef5bf631a4aae9a5eb48d6f3 /OpenSim/Region/ScriptEngine | |
parent | adding sqlite journal files to .gitignore (diff) | |
download | opensim-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>
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs | 11 |
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; |