* minor: remove some mono compiler warnings, minor cleanup

This commit is contained in:
Justin Clarke Casey
2009-05-04 15:38:36 +00:00
parent f80ba373fa
commit 257fc5515a
11 changed files with 35 additions and 42 deletions

View File

@@ -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 = "# ";

View File

@@ -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();

View File

@@ -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;

View File

@@ -33,7 +33,7 @@ namespace OpenSim.Framework
/// <summary>
/// Inventory Item - contains all the properties associated with an individual inventory piece.
/// </summary>
public class InventoryItemBase : InventoryNodeBase
public class InventoryItemBase : InventoryNodeBase, ICloneable
{
/// <summary>
/// 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;
}
}
}