diff options
author | Adam Frisby | 2008-01-15 02:09:55 +0000 |
---|---|---|
committer | Adam Frisby | 2008-01-15 02:09:55 +0000 |
commit | b25f9f322cdbcde7fd8c043137bf07992e5ef318 (patch) | |
tree | 7c1a5115b2849dfe388b825dd271271d347f9574 /OpenSim/Framework/Communications/Cache/AssetTransactions.cs | |
parent | Set svn:eol-style. (diff) | |
download | opensim-SC_OLD-b25f9f322cdbcde7fd8c043137bf07992e5ef318.zip opensim-SC_OLD-b25f9f322cdbcde7fd8c043137bf07992e5ef318.tar.gz opensim-SC_OLD-b25f9f322cdbcde7fd8c043137bf07992e5ef318.tar.bz2 opensim-SC_OLD-b25f9f322cdbcde7fd8c043137bf07992e5ef318.tar.xz |
* Mother of all commits:
* Cleaned up copyright notices in AssemblyInfo.cs's
* Added Copyright headers to a bunch of files missing them
* Replaced several common string instances with a static constant to prevent reallocation of the same strings thousands of times. "" -> String.Empty is the first such candidate.
Diffstat (limited to 'OpenSim/Framework/Communications/Cache/AssetTransactions.cs')
-rw-r--r-- | OpenSim/Framework/Communications/Cache/AssetTransactions.cs | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/OpenSim/Framework/Communications/Cache/AssetTransactions.cs b/OpenSim/Framework/Communications/Cache/AssetTransactions.cs index dd1f8ba..74e2093 100644 --- a/OpenSim/Framework/Communications/Cache/AssetTransactions.cs +++ b/OpenSim/Framework/Communications/Cache/AssetTransactions.cs | |||
@@ -123,8 +123,8 @@ namespace OpenSim.Framework.Communications.Cache | |||
123 | public LLUUID TransactionID = LLUUID.Zero; | 123 | public LLUUID TransactionID = LLUUID.Zero; |
124 | public bool UploadComplete; | 124 | public bool UploadComplete; |
125 | public ulong XferID; | 125 | public ulong XferID; |
126 | private string m_name = ""; | 126 | private string m_name = String.Empty; |
127 | private string m_description = ""; | 127 | private string m_description = String.Empty; |
128 | private sbyte type = 0; | 128 | private sbyte type = 0; |
129 | private sbyte invType = 0; | 129 | private sbyte invType = 0; |
130 | private uint nextPerm = 0; | 130 | private uint nextPerm = 0; |
@@ -331,12 +331,12 @@ namespace OpenSim.Framework.Communications.Cache | |||
331 | // Fields | 331 | // Fields |
332 | private BaseHttpServer httpListener; | 332 | private BaseHttpServer httpListener; |
333 | private LLUUID inventoryItemID; | 333 | private LLUUID inventoryItemID; |
334 | private string m_assetDescription = ""; | 334 | private string m_assetDescription = String.Empty; |
335 | private string m_assetName = ""; | 335 | private string m_assetName = String.Empty; |
336 | private LLUUID m_folderID; | 336 | private LLUUID m_folderID; |
337 | private LLUUID newAssetID; | 337 | private LLUUID newAssetID; |
338 | private bool m_dumpImageToFile; | 338 | private bool m_dumpImageToFile; |
339 | private string uploaderPath = ""; | 339 | private string uploaderPath = String.Empty; |
340 | 340 | ||
341 | // Events | 341 | // Events |
342 | public event UpLoadedAsset OnUpLoad; | 342 | public event UpLoadedAsset OnUpLoad; |
@@ -367,7 +367,7 @@ namespace OpenSim.Framework.Communications.Cache | |||
367 | public string uploaderCaps(byte[] data, string path, string param) | 367 | public string uploaderCaps(byte[] data, string path, string param) |
368 | { | 368 | { |
369 | LLUUID inventoryItemID = this.inventoryItemID; | 369 | LLUUID inventoryItemID = this.inventoryItemID; |
370 | string text = ""; | 370 | string text = String.Empty; |
371 | LLSDAssetUploadComplete complete = new LLSDAssetUploadComplete(); | 371 | LLSDAssetUploadComplete complete = new LLSDAssetUploadComplete(); |
372 | complete.new_asset = newAssetID.ToString(); | 372 | complete.new_asset = newAssetID.ToString(); |
373 | complete.new_inventory_item = inventoryItemID; | 373 | complete.new_inventory_item = inventoryItemID; |
@@ -380,7 +380,7 @@ namespace OpenSim.Framework.Communications.Cache | |||
380 | } | 380 | } |
381 | if (OnUpLoad != null) | 381 | if (OnUpLoad != null) |
382 | { | 382 | { |
383 | OnUpLoad(m_assetName, "description", newAssetID, inventoryItemID, LLUUID.Zero, data, "", ""); | 383 | OnUpLoad(m_assetName, "description", newAssetID, inventoryItemID, LLUUID.Zero, data, String.Empty, String.Empty); |
384 | } | 384 | } |
385 | return text; | 385 | return text; |
386 | } | 386 | } |
@@ -391,10 +391,10 @@ namespace OpenSim.Framework.Communications.Cache | |||
391 | // Fields | 391 | // Fields |
392 | private BaseHttpServer httpListener; | 392 | private BaseHttpServer httpListener; |
393 | private LLUUID inventoryItemID; | 393 | private LLUUID inventoryItemID; |
394 | private string m_assetName = ""; | 394 | private string m_assetName = String.Empty; |
395 | private LLUUID newAssetID; | 395 | private LLUUID newAssetID; |
396 | private bool SaveImages = false; | 396 | private bool SaveImages = false; |
397 | private string uploaderPath = ""; | 397 | private string uploaderPath = String.Empty; |
398 | 398 | ||
399 | // Events | 399 | // Events |
400 | public event UpLoadedAsset OnUpLoad; | 400 | public event UpLoadedAsset OnUpLoad; |
@@ -420,7 +420,7 @@ namespace OpenSim.Framework.Communications.Cache | |||
420 | public string uploaderCaps(byte[] data, string path, string param) | 420 | public string uploaderCaps(byte[] data, string path, string param) |
421 | { | 421 | { |
422 | LLUUID inventoryItemID = this.inventoryItemID; | 422 | LLUUID inventoryItemID = this.inventoryItemID; |
423 | string text = ""; | 423 | string text = String.Empty; |
424 | LLSDAssetUploadComplete complete = new LLSDAssetUploadComplete(); | 424 | LLSDAssetUploadComplete complete = new LLSDAssetUploadComplete(); |
425 | complete.new_asset = newAssetID.ToString(); | 425 | complete.new_asset = newAssetID.ToString(); |
426 | complete.new_inventory_item = inventoryItemID; | 426 | complete.new_inventory_item = inventoryItemID; |
@@ -433,7 +433,7 @@ namespace OpenSim.Framework.Communications.Cache | |||
433 | } | 433 | } |
434 | if (OnUpLoad != null) | 434 | if (OnUpLoad != null) |
435 | { | 435 | { |
436 | OnUpLoad(m_assetName, "description", newAssetID, inventoryItemID, LLUUID.Zero, data, "", ""); | 436 | OnUpLoad(m_assetName, "description", newAssetID, inventoryItemID, LLUUID.Zero, data, String.Empty, String.Empty); |
437 | } | 437 | } |
438 | return text; | 438 | return text; |
439 | } | 439 | } |