aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Framework/Serialization
diff options
context:
space:
mode:
authorJustin Clarke Casey2009-05-07 19:27:38 +0000
committerJustin Clarke Casey2009-05-07 19:27:38 +0000
commitaaad2fc8ffb48901e4c893811e82bf7754523d15 (patch)
tree1fe57d54276e52a733b6bd89c43d2b0d6dffcc4a /OpenSim/Framework/Serialization
parentinstrument most of the tests with a new InMethod function that may help us fi... (diff)
downloadopensim-SC_OLD-aaad2fc8ffb48901e4c893811e82bf7754523d15.zip
opensim-SC_OLD-aaad2fc8ffb48901e4c893811e82bf7754523d15.tar.gz
opensim-SC_OLD-aaad2fc8ffb48901e4c893811e82bf7754523d15.tar.bz2
opensim-SC_OLD-aaad2fc8ffb48901e4c893811e82bf7754523d15.tar.xz
* minor: use system ascii encoding rather than newing up our own object
Diffstat (limited to 'OpenSim/Framework/Serialization')
-rw-r--r--OpenSim/Framework/Serialization/External/UserInventoryItemSerializer.cs4
1 files changed, 1 insertions, 3 deletions
diff --git a/OpenSim/Framework/Serialization/External/UserInventoryItemSerializer.cs b/OpenSim/Framework/Serialization/External/UserInventoryItemSerializer.cs
index e0ddc96..b3fb7c3 100644
--- a/OpenSim/Framework/Serialization/External/UserInventoryItemSerializer.cs
+++ b/OpenSim/Framework/Serialization/External/UserInventoryItemSerializer.cs
@@ -40,8 +40,6 @@ namespace OpenSim.Framework.Serialization.External
40 /// XXX: Please do not use yet. 40 /// XXX: Please do not use yet.
41 public class UserInventoryItemSerializer 41 public class UserInventoryItemSerializer
42 { 42 {
43 protected static ASCIIEncoding m_asciiEncoding = new ASCIIEncoding();
44
45 /// <summary> 43 /// <summary>
46 /// Deserialize item 44 /// Deserialize item
47 /// </summary> 45 /// </summary>
@@ -50,7 +48,7 @@ namespace OpenSim.Framework.Serialization.External
50 /// <exception cref="System.Xml.XmlException"></exception> 48 /// <exception cref="System.Xml.XmlException"></exception>
51 public static InventoryItemBase Deserialize(byte[] serialization) 49 public static InventoryItemBase Deserialize(byte[] serialization)
52 { 50 {
53 return Deserialize(m_asciiEncoding.GetString(serialization, 0, serialization.Length)); 51 return Deserialize(Encoding.ASCII.GetString(serialization, 0, serialization.Length));
54 } 52 }
55 53
56 /// <summary> 54 /// <summary>