From b25f9f322cdbcde7fd8c043137bf07992e5ef318 Mon Sep 17 00:00:00 2001 From: Adam Frisby Date: Tue, 15 Jan 2008 02:09:55 +0000 Subject: * 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. --- OpenSim/Grid/GridServer/Main.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'OpenSim/Grid/GridServer/Main.cs') 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 /* foreach (SimProfileBase sim in m_simProfileManager.SimProfiles.Values) { - string SimResponse = ""; + string SimResponse = String.Empty; try { WebRequest CheckSim = WebRequest.Create("http://" + sim.sim_ip + ":" + sim.sim_port.ToString() + "/checkstatus/"); @@ -158,7 +158,7 @@ namespace OpenSim.Grid.GridServer CheckSim.ContentLength = 0; StreamWriter stOut = new StreamWriter(CheckSim.GetRequestStream(), System.Text.Encoding.ASCII); - stOut.Write(""); + stOut.Write(String.Empty); stOut.Close(); StreamReader stIn = new StreamReader(CheckSim.GetResponse().GetResponseStream()); @@ -204,9 +204,9 @@ namespace OpenSim.Grid.GridServer { try { - string attri = ""; + string attri = String.Empty; attri = configData.GetAttribute("DataBaseProvider"); - if (attri == "") + if (attri == String.Empty) { GridDll = "OpenSim.Framework.Data.DB4o.dll"; configData.SetAttribute("DataBaseProvider", "OpenSim.Framework.Data.DB4o.dll"); -- cgit v1.1