Did i converted the code correctly?

From this:

GetFirstPersonCamera()->GetComponentTransform().InverseTransformVectorNoScale(GetMesh()->GetSocketLocation(HandSocket) - WPN->GetAimPointTransform().GetLocation())

to this