Weapon Logic from blueprint to CPP

Hi there Darkclaw here I have made a ammo query logic in blueprint and wanted to make in to C++
here is the link :- ammo query posted by anonymous | blueprintUE | PasteBin For Unreal Engine
so what the blueprint is doing here is that it adding extra one bullet in the magazine, when player reload the gun not emptying the magazine it will add 1 more round in the capacity on the reload and if the player has completely emptied the magazine will only add the maximum capacity of the magazine as intended.
so I have made the working cpp for normal reload but not as same has the blueprint ? can some one help .