Procházet zdrojové kódy

BUG: In Core/ctkDependencyGraph, update method printAdditionalInfo().

Array Processed, Discovered and Parent are now displayed from i=1 to size().

That should solved the 'uninitialised value' problem showed on the Dynamic analysis report: http://my.cdash.org/viewDynamicAnalysisFile.php?id=156978
Jean-Christophe Fillion-Robin před 15 roky
rodič
revize
5c59712556
1 změnil soubory, kde provedl 3 přidání a 3 odebrání
  1. 3 3
      Libs/Core/ctkDependencyGraph.cxx

+ 3 - 3
Libs/Core/ctkDependencyGraph.cxx

@@ -233,17 +233,17 @@ void ctkDependencyGraph::printAdditionalInfo()
            << " Abort:" << this->Internal->Abort;
            
   qDebug() << " [Processed]";
-  for(int i=0; i < this->Internal->Processed.size(); i++)
+  for(int i=1; i < this->Internal->Processed.size(); i++)
     {
     qDebug() << i << "->" << this->Internal->Processed[i]; 
     }
   qDebug() << " [Discovered]";
-  for(int i=0; i < this->Internal->Discovered.size(); i++)
+  for(int i=1; i < this->Internal->Discovered.size(); i++)
     {
     qDebug() << i << "->" << this->Internal->Discovered[i]; 
     }
   qDebug() << " [Parent]";
-  for(int i=0; i < this->Internal->Parent.size(); i++)
+  for(int i=1; i < this->Internal->Parent.size(); i++)
     {
     qDebug() << i << "->" << this->Internal->Parent[i]; 
     }