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/Framework/Console/AssemblyInfo.cs | 10 +++++----- OpenSim/Framework/Console/LogBase.cs | 4 ++-- 2 files changed, 7 insertions(+), 7 deletions(-) (limited to 'OpenSim/Framework/Console') diff --git a/OpenSim/Framework/Console/AssemblyInfo.cs b/OpenSim/Framework/Console/AssemblyInfo.cs index 73ecd18..b321170 100644 --- a/OpenSim/Framework/Console/AssemblyInfo.cs +++ b/OpenSim/Framework/Console/AssemblyInfo.cs @@ -36,12 +36,12 @@ using System.Runtime.InteropServices; [assembly : AssemblyTitle("ServerConsole")] [assembly : AssemblyDescription("")] -[assembly : AssemblyConfiguration("")] -[assembly : AssemblyCompany("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("")] [assembly : AssemblyProduct("ServerConsole")] -[assembly : AssemblyCopyright("")] -[assembly : AssemblyTrademark("")] -[assembly : AssemblyCulture("")] +[assembly: AssemblyCopyright("")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] // This sets the default COM visibility of types in the assembly to invisible. // If you need to expose a type to COM, use [ComVisible(true)] on that type. diff --git a/OpenSim/Framework/Console/LogBase.cs b/OpenSim/Framework/Console/LogBase.cs index e7b1945..6235c07 100644 --- a/OpenSim/Framework/Console/LogBase.cs +++ b/OpenSim/Framework/Console/LogBase.cs @@ -298,7 +298,7 @@ namespace OpenSim.Framework.Console catch (Exception e) { MainLog.Instance.Error("Console", "System.Console.ReadLine exception " + e.ToString()); - return ""; + return String.Empty; } } @@ -377,7 +377,7 @@ namespace OpenSim.Framework.Console public string CmdPrompt(string prompt, string defaultresponse) { string temp = CmdPrompt(String.Format("{0} [{1}]", prompt, defaultresponse)); - if (temp == "") + if (temp == String.Empty) { return defaultresponse; } -- cgit v1.1