aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Grid/GridServer/Main.cs
diff options
context:
space:
mode:
authorAdam Frisby2008-01-15 02:09:55 +0000
committerAdam Frisby2008-01-15 02:09:55 +0000
commitb25f9f322cdbcde7fd8c043137bf07992e5ef318 (patch)
tree7c1a5115b2849dfe388b825dd271271d347f9574 /OpenSim/Grid/GridServer/Main.cs
parentSet svn:eol-style. (diff)
downloadopensim-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/Grid/GridServer/Main.cs')
-rw-r--r--OpenSim/Grid/GridServer/Main.cs8
1 files changed, 4 insertions, 4 deletions
diff --git a/OpenSim/Grid/GridServer/Main.cs b/OpenSim/Grid/GridServer/Main.cs
index 6bb4c75..d4947b3 100644
--- a/OpenSim/Grid/GridServer/Main.cs
+++ b/OpenSim/Grid/GridServer/Main.cs
@@ -149,7 +149,7 @@ namespace OpenSim.Grid.GridServer
149 /* 149 /*
150 foreach (SimProfileBase sim in m_simProfileManager.SimProfiles.Values) 150 foreach (SimProfileBase sim in m_simProfileManager.SimProfiles.Values)
151 { 151 {
152 string SimResponse = ""; 152 string SimResponse = String.Empty;
153 try 153 try
154 { 154 {
155 WebRequest CheckSim = WebRequest.Create("http://" + sim.sim_ip + ":" + sim.sim_port.ToString() + "/checkstatus/"); 155 WebRequest CheckSim = WebRequest.Create("http://" + sim.sim_ip + ":" + sim.sim_port.ToString() + "/checkstatus/");
@@ -158,7 +158,7 @@ namespace OpenSim.Grid.GridServer
158 CheckSim.ContentLength = 0; 158 CheckSim.ContentLength = 0;
159 159
160 StreamWriter stOut = new StreamWriter(CheckSim.GetRequestStream(), System.Text.Encoding.ASCII); 160 StreamWriter stOut = new StreamWriter(CheckSim.GetRequestStream(), System.Text.Encoding.ASCII);
161 stOut.Write(""); 161 stOut.Write(String.Empty);
162 stOut.Close(); 162 stOut.Close();
163 163
164 StreamReader stIn = new StreamReader(CheckSim.GetResponse().GetResponseStream()); 164 StreamReader stIn = new StreamReader(CheckSim.GetResponse().GetResponseStream());
@@ -204,9 +204,9 @@ namespace OpenSim.Grid.GridServer
204 { 204 {
205 try 205 try
206 { 206 {
207 string attri = ""; 207 string attri = String.Empty;
208 attri = configData.GetAttribute("DataBaseProvider"); 208 attri = configData.GetAttribute("DataBaseProvider");
209 if (attri == "") 209 if (attri == String.Empty)
210 { 210 {
211 GridDll = "OpenSim.Framework.Data.DB4o.dll"; 211 GridDll = "OpenSim.Framework.Data.DB4o.dll";
212 configData.SetAttribute("DataBaseProvider", "OpenSim.Framework.Data.DB4o.dll"); 212 configData.SetAttribute("DataBaseProvider", "OpenSim.Framework.Data.DB4o.dll");