Skip to content
Snippets Groups Projects
Commit 9b8edf0a authored by Jeff Baumes's avatar Jeff Baumes
Browse files

COMP: Fixing printself and compile warnings.

parent 53232452
No related branches found
No related tags found
No related merge requests found
......@@ -31,7 +31,7 @@
#include <vtkstd/algorithm>
#include <vtkstd/vector>
vtkCxxRevisionMacro(vtkAnnotationLayers, "1.4");
vtkCxxRevisionMacro(vtkAnnotationLayers, "1.5");
vtkStandardNewMacro(vtkAnnotationLayers);
vtkCxxSetObjectMacro(vtkAnnotationLayers, CurrentAnnotation, vtkAnnotation);
......@@ -191,6 +191,16 @@ void vtkAnnotationLayers::PrintSelf(ostream& os, vtkIndent indent)
os << "(none)\n";
}
}
os << indent << "CurrentAnnotation: ";
if (this->CurrentAnnotation)
{
os << "\n";
this->CurrentAnnotation->PrintSelf(os, indent.GetNextIndent());
}
else
{
os << "(none)\n";
}
}
vtkAnnotationLayers* vtkAnnotationLayers::GetData(vtkInformation* info)
......
......@@ -37,7 +37,7 @@
#include "vtkTree.h"
#include "vtkVariantArray.h"
vtkCxxRevisionMacro(vtkSplineGraphEdges, "1.1");
vtkCxxRevisionMacro(vtkSplineGraphEdges, "1.2");
vtkStandardNewMacro(vtkSplineGraphEdges);
vtkSplineGraphEdges::vtkSplineGraphEdges()
......@@ -95,8 +95,8 @@ int vtkSplineGraphEdges::RequestData(
vtkPoints* pts = splined->GetPoints();
double pt[3];
lines->InitTraversal();
vtkIdType numCellPts;
vtkIdType* cellPts;
vtkIdType numCellPts = 0;
vtkIdType* cellPts = 0;
for (vtkIdType i = 0; i < numLines; ++i)
{
lines->GetNextCell(numCellPts, cellPts);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment