2002-02-24 Duncan Mak <duncan@ximian.com>
authorDuncan Mak <duncan@mono-cvs.ximian.com>
Sun, 24 Feb 2002 21:05:59 +0000 (21:05 -0000)
committerDuncan Mak <duncan@mono-cvs.ximian.com>
Sun, 24 Feb 2002 21:05:59 +0000 (21:05 -0000)
    * XmlQualifiedName.cs: Fixed a warning from Equals ().

svn path=/trunk/mcs/; revision=2619

mcs/class/System.XML/System.Xml/ChangeLog
mcs/class/System.XML/System.Xml/XmlQualifiedName.cs

index 0a7bfa496066e1e47e7106a3688969c216c95fe0..6069f0db9f28258a1fe67063e2ec22d1116d5dd3 100644 (file)
@@ -1,5 +1,7 @@
 2002-02-24  Duncan Mak  <duncan@ximian.com>
 
+       * XmlQualifiedName.cs: Fixed a warning from Equals ().
+
        * XmlTokenizedType.cs: Added to CVS.
 
        * XmlUrlResolver.cs: Added to CVS with one TODO task.
index 0af8bbfcc6a52a6e9fe3fe45b2bc479427062440..8e559a749ba1616d764adbe94ed56ade512ad88f 100644 (file)
@@ -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;