comparison dmd/String.d @ 72:2e2a5c3f943a

reduced warnings by adding override to the methods think this also normalizes different line endings used all over the place
author Trass3r
date Sat, 28 Aug 2010 16:19:48 +0200
parents ee3a9f34dc48
children e28b18c23469
comparison
equal deleted inserted replaced
71:8e24ef1dd139 72:2e2a5c3f943a
71 bool equals(Object obj) 71 bool equals(Object obj)
72 { 72 {
73 return str == (cast(String)obj).str; 73 return str == (cast(String)obj).str;
74 } 74 }
75 75
76 int opCmp(Object obj) 76 override int opCmp(Object obj)
77 { 77 {
78 return cmp(str, (cast(String)obj).str); 78 return cmp(str, (cast(String)obj).str);
79 } 79 }
80 80
81 string toChars() 81 string toChars()