Prechádzať zdrojové kódy

2002-02-24 Duncan Mak <[email protected]>

	    * XmlQualifiedName.cs: Fixed a warning from Equals ().

svn path=/trunk/mcs/; revision=2619
Duncan Mak 24 rokov pred
rodič
commit
ed0e45d9ae

+ 2 - 0
mcs/class/System.XML/System.Xml/ChangeLog

@@ -1,5 +1,7 @@
 2002-02-24  Duncan Mak  <[email protected]>
 
+	* XmlQualifiedName.cs: Fixed a warning from Equals ().
+
 	* XmlTokenizedType.cs: Added to CVS.
 
 	* XmlUrlResolver.cs: Added to CVS with one TODO task.

+ 2 - 3
mcs/class/System.XML/System.Xml/XmlQualifiedName.cs

@@ -32,8 +32,7 @@ namespace System.Xml
 		}
 
 		// Fields
-		[MonoTODO] public static readonly XmlQualifiedName Empty = new XmlQualifiedName ();
-		
+		public static readonly XmlQualifiedName Empty = new XmlQualifiedName ();		
 		private string name;
 		private string ns;
 		
@@ -61,7 +60,7 @@ namespace System.Xml
 		// Methods
 		public override bool Equals (object other)
 		{
-			if (this == other)
+			if ((XmlQualifiedName) this == (XmlQualifiedName) other)
 				return true;
 			else
 				return false;