Skip to content

Commit d69a26d

Browse files
authored
NULL->nullptr
1 parent 392f25d commit d69a26d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Source/Managers/LuaMan.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -618,7 +618,7 @@ int LuaStateWrapper::RunScriptFunctionObject(const LuabindObjectWrapper* functio
618618

619619
// Function object may be deleted during the Lua call, making `path` above invalid.
620620
// Find and store the script timings entry now and write to it afterward.
621-
PerformanceMan::ScriptTiming* timing = NULL;
621+
PerformanceMan::ScriptTiming* timing = nullptr;
622622

623623
// only track time in non-MT scripts, for now
624624
if (&g_LuaMan.GetMasterScriptState() == this) {
@@ -640,7 +640,7 @@ int LuaStateWrapper::RunScriptFunctionObject(const LuabindObjectWrapper* functio
640640
}
641641
std::chrono::steady_clock::time_point end = std::chrono::steady_clock::now();
642642

643-
if (timing != NULL) {
643+
if (timing) {
644644
timing->m_Time += std::chrono::duration_cast<std::chrono::microseconds>(end - begin).count();
645645
timing->m_CallCount++;
646646
}

0 commit comments

Comments
 (0)