aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Data/SQLite/SQLiteInventoryStore.cs
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Data/SQLite/SQLiteInventoryStore.cs')
-rw-r--r--OpenSim/Data/SQLite/SQLiteInventoryStore.cs12
1 files changed, 6 insertions, 6 deletions
diff --git a/OpenSim/Data/SQLite/SQLiteInventoryStore.cs b/OpenSim/Data/SQLite/SQLiteInventoryStore.cs
index b9fda04..fe1edde 100644
--- a/OpenSim/Data/SQLite/SQLiteInventoryStore.cs
+++ b/OpenSim/Data/SQLite/SQLiteInventoryStore.cs
@@ -422,7 +422,7 @@ namespace OpenSim.Data.SQLite
422 public List<InventoryFolderBase> getInventoryFolders(UUID parentID) 422 public List<InventoryFolderBase> getInventoryFolders(UUID parentID)
423 { 423 {
424 List<InventoryFolderBase> folders = new List<InventoryFolderBase>(); 424 List<InventoryFolderBase> folders = new List<InventoryFolderBase>();
425 getInventoryFolders(ref folders, Util.ToRawUuidString(parentID)); 425 getInventoryFolders(ref folders, parentID);
426 return folders; 426 return folders;
427 } 427 }
428 428
@@ -623,10 +623,10 @@ namespace OpenSim.Data.SQLite
623 /// <todo>this is horribly inefficient, but I don't want to ruin the overall structure of this implementation</todo> 623 /// <todo>this is horribly inefficient, but I don't want to ruin the overall structure of this implementation</todo>
624 private void deleteItemsInFolder(UUID folderId) 624 private void deleteItemsInFolder(UUID folderId)
625 { 625 {
626 List<InventoryItemBase> items = getInventoryInFolder(Util.ToRawUuidString(folderId)); 626 List<InventoryItemBase> items = getInventoryInFolder(folderId);
627 627
628 foreach (InventoryItemBase i in items) 628 foreach (InventoryItemBase i in items)
629 deleteInventoryItem(Util.ToRawUuidString(i.ID)); 629 deleteInventoryItem(i.ID);
630 } 630 }
631 631
632 /// <summary> 632 /// <summary>
@@ -667,7 +667,7 @@ namespace OpenSim.Data.SQLite
667 { 667 {
668 lock (ds) 668 lock (ds)
669 { 669 {
670 List<InventoryFolderBase> subFolders = getFolderHierarchy(Util.ToRawUuidString(folderID)); 670 List<InventoryFolderBase> subFolders = getFolderHierarchy(folderID);
671 671
672 DataTable inventoryFolderTable = ds.Tables["inventoryfolders"]; 672 DataTable inventoryFolderTable = ds.Tables["inventoryfolders"];
673 DataRow inventoryRow; 673 DataRow inventoryRow;
@@ -678,7 +678,7 @@ namespace OpenSim.Data.SQLite
678 inventoryRow = inventoryFolderTable.Rows.Find(Util.ToRawUuidString(f.ID)); 678 inventoryRow = inventoryFolderTable.Rows.Find(Util.ToRawUuidString(f.ID));
679 if (inventoryRow != null) 679 if (inventoryRow != null)
680 { 680 {
681 deleteItemsInFolder(Util.ToRawUuidString(f.ID)); 681 deleteItemsInFolder(f.ID);
682 inventoryRow.Delete(); 682 inventoryRow.Delete();
683 } 683 }
684 } 684 }
@@ -687,7 +687,7 @@ namespace OpenSim.Data.SQLite
687 inventoryRow = inventoryFolderTable.Rows.Find(Util.ToRawUuidString(folderID)); 687 inventoryRow = inventoryFolderTable.Rows.Find(Util.ToRawUuidString(folderID));
688 if (inventoryRow != null) 688 if (inventoryRow != null)
689 { 689 {
690 deleteItemsInFolder(Util.ToRawUuidString(folderID)); 690 deleteItemsInFolder(folderID);
691 inventoryRow.Delete(); 691 inventoryRow.Delete();
692 } 692 }
693 693