Skip to content

Commit

Permalink
Using more appropriate approach.
Browse files Browse the repository at this point in the history
  • Loading branch information
JesseKPhillips committed Jul 28, 2011
1 parent c66848d commit 1b148b6
Showing 1 changed file with 6 additions and 12 deletions.
18 changes: 6 additions & 12 deletions win32/dfl/tabcontrol.d
Original file line number Diff line number Diff line change
Expand Up @@ -50,37 +50,31 @@ class TabPage: Panel
return text;
}


alias Control.opEquals opEquals;


override Dequ opEquals(Object o)
{
return text == getObjectString(o);
}


override Dequ opEquals(Control o)
{
return super.opEquals(o);
}


Dequ opEquals(Dstring val)
{
return text == val;
}


alias Control.opCmp opCmp;


override int opCmp(Object o)
{
return stringICmp(text, getObjectString(o));
}


override int opCmp(Control o)
{
return super.opCmp(o);
}


int opCmp(Dstring val)
{
return stringICmp(text, val);
Expand Down

0 comments on commit 1b148b6

Please sign in to comment.