No need to instantiate B2IRectangle twice.

Change-Id: I584f3096221ff8b72ffde7ba5bce4259da64a14d
Fix prefix for non-reference variable.

Also remove excessive static_cast for integer to integer assignments.

Change-Id: I8cc65a4e5385ad6d62bb22b24fbe879efbbabdb6
Scope level reduction.

Change-Id: I02701e70c064fe0378ff3bfc1c31365f7fba33cc
Scope level reduction.

Change-Id: I4e2f25cdb9aef851724073d32e96c76c3416de3c
Pass by const reference.

Change-Id: If4bcee8d9d45b43f025ee0409070afdc53b9405a
Returned shape object is assigned but not used.

Change-Id: Icd15ce57e6d4bb5384b7508d4d3ceb9cd1038f9a