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/Console | |
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/Console')
-rw-r--r-- | OpenSim/Framework/Console/AssemblyInfo.cs | 10 | ||||
-rw-r--r-- | OpenSim/Framework/Console/LogBase.cs | 4 |
2 files changed, 7 insertions, 7 deletions
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; | |||
36 | 36 | ||
37 | [assembly : AssemblyTitle("ServerConsole")] | 37 | [assembly : AssemblyTitle("ServerConsole")] |
38 | [assembly : AssemblyDescription("")] | 38 | [assembly : AssemblyDescription("")] |
39 | [assembly : AssemblyConfiguration("")] | 39 | [assembly: AssemblyConfiguration("")] |
40 | [assembly : AssemblyCompany("")] | 40 | [assembly: AssemblyCompany("")] |
41 | [assembly : AssemblyProduct("ServerConsole")] | 41 | [assembly : AssemblyProduct("ServerConsole")] |
42 | [assembly : AssemblyCopyright("")] | 42 | [assembly: AssemblyCopyright("")] |
43 | [assembly : AssemblyTrademark("")] | 43 | [assembly: AssemblyTrademark("")] |
44 | [assembly : AssemblyCulture("")] | 44 | [assembly: AssemblyCulture("")] |
45 | 45 | ||
46 | // This sets the default COM visibility of types in the assembly to invisible. | 46 | // This sets the default COM visibility of types in the assembly to invisible. |
47 | // If you need to expose a type to COM, use [ComVisible(true)] on that type. | 47 | // 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 | |||
298 | catch (Exception e) | 298 | catch (Exception e) |
299 | { | 299 | { |
300 | MainLog.Instance.Error("Console", "System.Console.ReadLine exception " + e.ToString()); | 300 | MainLog.Instance.Error("Console", "System.Console.ReadLine exception " + e.ToString()); |
301 | return ""; | 301 | return String.Empty; |
302 | } | 302 | } |
303 | } | 303 | } |
304 | 304 | ||
@@ -377,7 +377,7 @@ namespace OpenSim.Framework.Console | |||
377 | public string CmdPrompt(string prompt, string defaultresponse) | 377 | public string CmdPrompt(string prompt, string defaultresponse) |
378 | { | 378 | { |
379 | string temp = CmdPrompt(String.Format("{0} [{1}]", prompt, defaultresponse)); | 379 | string temp = CmdPrompt(String.Format("{0} [{1}]", prompt, defaultresponse)); |
380 | if (temp == "") | 380 | if (temp == String.Empty) |
381 | { | 381 | { |
382 | return defaultresponse; | 382 | return defaultresponse; |
383 | } | 383 | } |