From a8aeec29dad25043252d609932a4d22b69613785 Mon Sep 17 00:00:00 2001 From: Jeff Ames Date: Mon, 17 Mar 2008 17:39:42 +0000 Subject: Fix a few mono compiler warnings. Minor cleanup. --- OpenSim/Region/Environment/PermissionManager.cs | 4 ++-- OpenSim/Region/Environment/Scenes/Scene.Inventory.cs | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'OpenSim/Region/Environment') diff --git a/OpenSim/Region/Environment/PermissionManager.cs b/OpenSim/Region/Environment/PermissionManager.cs index 171ced1..30f91ad 100644 --- a/OpenSim/Region/Environment/PermissionManager.cs +++ b/OpenSim/Region/Environment/PermissionManager.cs @@ -83,7 +83,7 @@ namespace OpenSim.Region.Environment } // If there is no master avatar, return false - if (m_scene.RegionInfo.MasterAvatarAssignedUUID != null) + if (!m_scene.RegionInfo.MasterAvatarAssignedUUID.Equals(null)) { return m_scene.RegionInfo.MasterAvatarAssignedUUID == user; } @@ -97,7 +97,7 @@ namespace OpenSim.Region.Environment { return true; } - if (user != null) + if (!user.Equals(null)) { LLUUID[] estatemanagers = m_scene.RegionInfo.EstateSettings.estateManagers; for (int i = 0; i < estatemanagers.Length; i++) diff --git a/OpenSim/Region/Environment/Scenes/Scene.Inventory.cs b/OpenSim/Region/Environment/Scenes/Scene.Inventory.cs index 78b28d5..229ab1c 100644 --- a/OpenSim/Region/Environment/Scenes/Scene.Inventory.cs +++ b/OpenSim/Region/Environment/Scenes/Scene.Inventory.cs @@ -342,7 +342,7 @@ namespace OpenSim.Region.Environment.Scenes asset.Description = description; asset.InvType = invType; asset.Type = assetType; - asset.FullID = LLUUID.Random(); // TODO: check for conflicts + asset.FullID = LLUUID.Random(); asset.Data = (data == null) ? new byte[1] : data; return asset; } @@ -781,7 +781,7 @@ namespace OpenSim.Region.Environment.Scenes InventoryItemBase item = new InventoryItemBase(); item.avatarID = remoteClient.AgentId; item.creatorsID = remoteClient.AgentId; - item.inventoryID = LLUUID.Random(); // TODO: check for conflicts + item.inventoryID = LLUUID.Random(); item.assetID = asset.FullID; item.inventoryDescription = asset.Description; item.inventoryName = asset.Name; -- cgit v1.1