Change the shape parameter as const pointer for shapeAdded.