For better readability, please format these on separate lines, like:

    if (mBody)
        velocity = mBody->GetAngularVelocity();
    else
        velocity = mBodyDef.angularVelocity;

Alternatively, this whole function could be written as:

    return mBody ? mBody->GetAngularVelocity() : mBodyDef.angularVelocity;