Actually, make that: + SPMask * mask = lpeitem->mask_ref->getObject(); + if (mask) {
You should try to eliminate as many casts as possible. Very often, you don't need one.
Actually, make that: >mask_ref- >getObject( );
+ SPMask * mask = lpeitem-
+ if (mask) {
You should try to eliminate as many casts as possible. Very often, you don't need one.