mirror of
https://github.com/opensim/opensim.git
synced 2026-08-04 08:06:27 +08:00
* 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.
This commit is contained in:
@@ -52,8 +52,8 @@ namespace OpenSim.Framework.RegionLoader.Web
|
||||
else
|
||||
{
|
||||
IniConfig startupConfig = (IniConfig) m_configSouce.Configs["Startup"];
|
||||
string url = startupConfig.GetString("regionload_webserver_url", "").Trim();
|
||||
if (url == "")
|
||||
string url = startupConfig.GetString("regionload_webserver_url", System.String.Empty).Trim();
|
||||
if (url == System.String.Empty)
|
||||
{
|
||||
MainLog.Instance.Error("WEBLOADER", "Unable to load webserver URL - URL was empty.");
|
||||
return null;
|
||||
@@ -66,7 +66,7 @@ namespace OpenSim.Framework.RegionLoader.Web
|
||||
HttpWebResponse webResponse = (HttpWebResponse) webRequest.GetResponse();
|
||||
MainLog.Instance.Debug("WEBLOADER", "Downloading Region Information From Remote Server...");
|
||||
StreamReader reader = new StreamReader(webResponse.GetResponseStream());
|
||||
string xmlSource = "";
|
||||
string xmlSource = System.String.Empty;
|
||||
string tempStr = reader.ReadLine();
|
||||
while (tempStr != null)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user