From 257fc5515ac9cb36032c2f44f040c3620ed2f328 Mon Sep 17 00:00:00 2001 From: Justin Clarke Casey Date: Mon, 4 May 2009 15:38:36 +0000 Subject: * minor: remove some mono compiler warnings, minor cleanup --- OpenSim/Framework/Console/ConsoleBase.cs | 2 +- OpenSim/Framework/Console/LocalConsole.cs | 2 +- OpenSim/Framework/Console/RemoteConsole.cs | 2 +- OpenSim/Framework/InventoryItemBase.cs | 13 ++++++++++++- 4 files changed, 15 insertions(+), 4 deletions(-) (limited to 'OpenSim/Framework') diff --git a/OpenSim/Framework/Console/ConsoleBase.cs b/OpenSim/Framework/Console/ConsoleBase.cs index 30493fc..dd3c145 100644 --- a/OpenSim/Framework/Console/ConsoleBase.cs +++ b/OpenSim/Framework/Console/ConsoleBase.cs @@ -37,7 +37,7 @@ namespace OpenSim.Framework.Console { public class ConsoleBase { - private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); +// private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); protected string prompt = "# "; diff --git a/OpenSim/Framework/Console/LocalConsole.cs b/OpenSim/Framework/Console/LocalConsole.cs index 2344ad2..22f10fc 100644 --- a/OpenSim/Framework/Console/LocalConsole.cs +++ b/OpenSim/Framework/Console/LocalConsole.cs @@ -39,7 +39,7 @@ namespace OpenSim.Framework.Console // public class LocalConsole : CommandConsole { - private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); +// private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); private readonly object m_syncRoot = new object(); diff --git a/OpenSim/Framework/Console/RemoteConsole.cs b/OpenSim/Framework/Console/RemoteConsole.cs index 71f075e..19c3ab1 100644 --- a/OpenSim/Framework/Console/RemoteConsole.cs +++ b/OpenSim/Framework/Console/RemoteConsole.cs @@ -41,7 +41,7 @@ namespace OpenSim.Framework.Console // public class RemoteConsole : CommandConsole { - private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); +// private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); private IHttpServer m_Server = null; private IConfigSource m_Config = null; diff --git a/OpenSim/Framework/InventoryItemBase.cs b/OpenSim/Framework/InventoryItemBase.cs index ce3dc63..b14ce7f 100644 --- a/OpenSim/Framework/InventoryItemBase.cs +++ b/OpenSim/Framework/InventoryItemBase.cs @@ -33,7 +33,7 @@ namespace OpenSim.Framework /// /// Inventory Item - contains all the properties associated with an individual inventory piece. /// - public class InventoryItemBase : InventoryNodeBase + public class InventoryItemBase : InventoryNodeBase, ICloneable { /// /// The inventory type of the item. This is slightly different from the asset type in some situations. @@ -143,5 +143,16 @@ namespace OpenSim.Framework { CreationDate = (int)(DateTime.UtcNow - new DateTime(1970, 1, 1)).TotalSeconds; } + + public object Clone() + { + InventoryItemBase clone = new InventoryItemBase(); + clone.AssetID = AssetID; + clone.AssetType = AssetType; + clone.BasePermissions = BasePermissions; + clone.CreationDate = CreationDate; + clone.CreatorId = CreatorId; + + } } } -- cgit v1.1