File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff 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 }
You can’t perform that action at this time.
0 commit comments