Преглед на файлове

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 преди 15 години
родител
ревизия
5c59712556
променени са 1 файла, в които са добавени 3 реда и са изтрити 3 реда
  1. 3 3
      Libs/Core/ctkDependencyGraph.cxx

+ 3 - 3
Libs/Core/ctkDependencyGraph.cxx

@@ -233,17 +233,17 @@ void ctkDependencyGraph::printAdditionalInfo()
            << " Abort:" << this->Internal->Abort;
            << " Abort:" << this->Internal->Abort;
            
            
   qDebug() << " [Processed]";
   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() << i << "->" << this->Internal->Processed[i]; 
     }
     }
   qDebug() << " [Discovered]";
   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() << i << "->" << this->Internal->Discovered[i]; 
     }
     }
   qDebug() << " [Parent]";
   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]; 
     qDebug() << i << "->" << this->Internal->Parent[i]; 
     }
     }