mirror of
https://github.com/opensim/opensim.git
synced 2026-08-09 02:36:00 +08:00
* minor: remove some mono compiler warnings, minor cleanup
This commit is contained in:
@@ -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 = "# ";
|
||||
|
||||
|
||||
@@ -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();
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user