ClickLightHdl doesn't need to be a link
and ClickLightHdl always takes a non-NULL argument, so NULL test is pointless. Turn it into a normal method that takes a reference. GetLightSource can be const. Nothing calls DoubleClickHdl, remove it.
Showing
Please
register
or
sign in
to comment