Use nullptr where possible instead of NULL or 0
[platform/upstream/glslang.git] / glslang / MachineIndependent / linkValidate.cpp
index fab65a7..ff97614 100644 (file)
@@ -1383,7 +1383,7 @@ void TIntermediate::checkCallGraphCycles(TInfoSink& infoSink)
     TCall* newRoot;
     do {
         // See if we have unvisited parts of the graph.
-        newRoot = 0;
+        newRoot = nullptr;
         for (TGraph::iterator call = callGraph.begin(); call != callGraph.end(); ++call) {
             if (! call->visited) {
                 newRoot = &(*call);