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/Data.MSSQL/MSSQLManager.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/Data.MSSQL/MSSQLManager.cs')
-rw-r--r-- | OpenSim/Framework/Data.MSSQL/MSSQLManager.cs | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/OpenSim/Framework/Data.MSSQL/MSSQLManager.cs b/OpenSim/Framework/Data.MSSQL/MSSQLManager.cs index bf57492..3a70909 100644 --- a/OpenSim/Framework/Data.MSSQL/MSSQLManager.cs +++ b/OpenSim/Framework/Data.MSSQL/MSSQLManager.cs | |||
@@ -186,7 +186,7 @@ namespace OpenSim.Framework.Data.MSSQL | |||
186 | protected static string defineTable(DataTable dt) | 186 | protected static string defineTable(DataTable dt) |
187 | { | 187 | { |
188 | string sql = "create table " + dt.TableName + "("; | 188 | string sql = "create table " + dt.TableName + "("; |
189 | string subsql = ""; | 189 | string subsql = String.Empty; |
190 | foreach (DataColumn col in dt.Columns) | 190 | foreach (DataColumn col in dt.Columns) |
191 | { | 191 | { |
192 | if (subsql.Length > 0) | 192 | if (subsql.Length > 0) |
@@ -337,7 +337,7 @@ namespace OpenSim.Framework.Data.MSSQL | |||
337 | 337 | ||
338 | // World Map Addition | 338 | // World Map Addition |
339 | string tempRegionMap = reader["regionMapTexture"].ToString(); | 339 | string tempRegionMap = reader["regionMapTexture"].ToString(); |
340 | if (tempRegionMap != "") | 340 | if (tempRegionMap != String.Empty) |
341 | { | 341 | { |
342 | regionprofile.regionMapTextureID = new LLUUID(tempRegionMap); | 342 | regionprofile.regionMapTextureID = new LLUUID(tempRegionMap); |
343 | } | 343 | } |
@@ -644,12 +644,12 @@ namespace OpenSim.Framework.Data.MSSQL | |||
644 | parameters["homeLookAtZ"] = homeLookAtZ.ToString(); | 644 | parameters["homeLookAtZ"] = homeLookAtZ.ToString(); |
645 | parameters["created"] = created.ToString(); | 645 | parameters["created"] = created.ToString(); |
646 | parameters["lastLogin"] = lastlogin.ToString(); | 646 | parameters["lastLogin"] = lastlogin.ToString(); |
647 | parameters["userInventoryURI"] = ""; | 647 | parameters["userInventoryURI"] = String.Empty; |
648 | parameters["userAssetURI"] = ""; | 648 | parameters["userAssetURI"] = String.Empty; |
649 | parameters["profileCanDoMask"] = "0"; | 649 | parameters["profileCanDoMask"] = "0"; |
650 | parameters["profileWantDoMask"] = "0"; | 650 | parameters["profileWantDoMask"] = "0"; |
651 | parameters["profileAboutText"] = ""; | 651 | parameters["profileAboutText"] = String.Empty; |
652 | parameters["profileFirstText"] = ""; | 652 | parameters["profileFirstText"] = String.Empty; |
653 | parameters["profileImage"] = LLUUID.Zero.ToString(); | 653 | parameters["profileImage"] = LLUUID.Zero.ToString(); |
654 | parameters["profileFirstImage"] = LLUUID.Zero.ToString(); | 654 | parameters["profileFirstImage"] = LLUUID.Zero.ToString(); |
655 | parameters["webLoginKey"] = LLUUID.Random().ToString(); | 655 | parameters["webLoginKey"] = LLUUID.Random().ToString(); |