- wxPen *each_pen = (wxPen *) node->GetData ();
- if (
- each_pen->GetWidth () == width &&
- each_pen->GetStyle () == style &&
- each_pen->GetColour ().Red () == colour.Red () &&
- each_pen->GetColour ().Green () == colour.Green () &&
- each_pen->GetColour ().Blue () == colour.Blue ())
- return each_pen;
+ wxPen * const pen = (wxPen *) node->GetData();
+ if ( pen->GetWidth () == width &&
+ pen->GetStyle () == style &&
+ pen->GetColour() == colour )
+ return pen;