Author: spouliot
Date: 2008-02-03 10:10:10 -0500 (Sun, 03 Feb 2008)
New Revision: 94693
Modified:
trunk/mcs/class/corlib/System.Runtime.InteropServices/COMException.cs
trunk/mcs/class/corlib/System.Runtime.InteropServices/ChangeLog
Log:
2008-02-03 Sebastien Pouliot <[EMAIL PROTECTED]>
* COMException.cs: Fix new-line literal and use of "" detected by
Gendarme.
Modified: trunk/mcs/class/corlib/System.Runtime.InteropServices/COMException.cs
===================================================================
--- trunk/mcs/class/corlib/System.Runtime.InteropServices/COMException.cs
2008-02-03 14:45:09 UTC (rev 94692)
+++ trunk/mcs/class/corlib/System.Runtime.InteropServices/COMException.cs
2008-02-03 15:10:10 UTC (rev 94693)
@@ -2,14 +2,11 @@
// COMException.cs - COM Exception
//
// Author:
-// Sebastien Pouliot ([EMAIL PROTECTED])
+// Sebastien Pouliot <[EMAIL PROTECTED]>
//
// (C) 2002 Motus Technologies Inc. (http://www.motus.com)
+// Copyright (C) 2004, 2008 Novell, Inc (http://www.novell.com)
//
-
-//
-// Copyright (C) 2004 Novell, Inc (http://www.novell.com)
-//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
@@ -58,9 +55,9 @@
public override string ToString ()
{
return String.Format (
- "{0} (0x{1:x}): {2} {3}\n{4}",
- GetType (), HResult, Message, InnerException == null ?
"" : InnerException.ToString (),
- StackTrace != null ? StackTrace : "");
+ "{0} (0x{1:x}): {2} {3}{4}{5}",
+ GetType (), HResult, Message, InnerException == null ?
String.Empty : InnerException.ToString (),
+ Environment.NewLine, StackTrace != null ? StackTrace :
String.Empty);
}
}
Modified: trunk/mcs/class/corlib/System.Runtime.InteropServices/ChangeLog
===================================================================
--- trunk/mcs/class/corlib/System.Runtime.InteropServices/ChangeLog
2008-02-03 14:45:09 UTC (rev 94692)
+++ trunk/mcs/class/corlib/System.Runtime.InteropServices/ChangeLog
2008-02-03 15:10:10 UTC (rev 94693)
@@ -1,3 +1,8 @@
+2008-02-03 Sebastien Pouliot <[EMAIL PROTECTED]>
+
+ * COMException.cs: Fix new-line literal and use of "" detected by
+ Gendarme.
+
2008-01-13 Gert Driesen <[EMAIL PROTECTED]>
* COMException.cs: Added missing colon in ToString.
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches