You dont have to do anything in C++ to get the nav mesh to update properly!
Just go to
Project Settings->Navigation->Rebuild at runtime
It will always stay up to date
If you want to get really fancy change the update frequency to 1 instead of 60 in the other navigation category under Project Settings (Navigation System)!
Rama