* minor: use system ascii encoding rather than newing up our own object

0.6.5-rc1
Justin Clarke Casey 2009-05-07 19:27:38 +00:00
parent ce0a84cbc0
commit aaad2fc8ff
1 changed files with 1 additions and 3 deletions

View File

@ -40,8 +40,6 @@ namespace OpenSim.Framework.Serialization.External
/// XXX: Please do not use yet. /// XXX: Please do not use yet.
public class UserInventoryItemSerializer public class UserInventoryItemSerializer
{ {
protected static ASCIIEncoding m_asciiEncoding = new ASCIIEncoding();
/// <summary> /// <summary>
/// Deserialize item /// Deserialize item
/// </summary> /// </summary>
@ -50,7 +48,7 @@ namespace OpenSim.Framework.Serialization.External
/// <exception cref="System.Xml.XmlException"></exception> /// <exception cref="System.Xml.XmlException"></exception>
public static InventoryItemBase Deserialize(byte[] serialization) public static InventoryItemBase Deserialize(byte[] serialization)
{ {
return Deserialize(m_asciiEncoding.GetString(serialization, 0, serialization.Length)); return Deserialize(Encoding.ASCII.GetString(serialization, 0, serialization.Length));
} }
/// <summary> /// <summary>