Replaced NULL by nullptr