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/RegionLoader | |
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/RegionLoader')
-rw-r--r-- | OpenSim/Framework/RegionLoader/Web/RegionLoaderWebServer.cs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/OpenSim/Framework/RegionLoader/Web/RegionLoaderWebServer.cs b/OpenSim/Framework/RegionLoader/Web/RegionLoaderWebServer.cs index 80acbae..8a1a038 100644 --- a/OpenSim/Framework/RegionLoader/Web/RegionLoaderWebServer.cs +++ b/OpenSim/Framework/RegionLoader/Web/RegionLoaderWebServer.cs | |||
@@ -52,8 +52,8 @@ namespace OpenSim.Framework.RegionLoader.Web | |||
52 | else | 52 | else |
53 | { | 53 | { |
54 | IniConfig startupConfig = (IniConfig) m_configSouce.Configs["Startup"]; | 54 | IniConfig startupConfig = (IniConfig) m_configSouce.Configs["Startup"]; |
55 | string url = startupConfig.GetString("regionload_webserver_url", "").Trim(); | 55 | string url = startupConfig.GetString("regionload_webserver_url", System.String.Empty).Trim(); |
56 | if (url == "") | 56 | if (url == System.String.Empty) |
57 | { | 57 | { |
58 | MainLog.Instance.Error("WEBLOADER", "Unable to load webserver URL - URL was empty."); | 58 | MainLog.Instance.Error("WEBLOADER", "Unable to load webserver URL - URL was empty."); |
59 | return null; | 59 | return null; |
@@ -66,7 +66,7 @@ namespace OpenSim.Framework.RegionLoader.Web | |||
66 | HttpWebResponse webResponse = (HttpWebResponse) webRequest.GetResponse(); | 66 | HttpWebResponse webResponse = (HttpWebResponse) webRequest.GetResponse(); |
67 | MainLog.Instance.Debug("WEBLOADER", "Downloading Region Information From Remote Server..."); | 67 | MainLog.Instance.Debug("WEBLOADER", "Downloading Region Information From Remote Server..."); |
68 | StreamReader reader = new StreamReader(webResponse.GetResponseStream()); | 68 | StreamReader reader = new StreamReader(webResponse.GetResponseStream()); |
69 | string xmlSource = ""; | 69 | string xmlSource = System.String.Empty; |
70 | string tempStr = reader.ReadLine(); | 70 | string tempStr = reader.ReadLine(); |
71 | while (tempStr != null) | 71 | while (tempStr != null) |
72 | { | 72 | { |