Skip to content

Commit cbaa3c0

Browse files
committed
Tweak patch for deprecated vtkAMRInformation.cxx
1 parent 6a3d80c commit cbaa3c0

File tree

1 file changed

+10
-15
lines changed

1 file changed

+10
-15
lines changed

tools/workspace/vtk_internal/patches/upstream/common_core_rm_iostream.patch

Lines changed: 10 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -109,23 +109,18 @@ it's actually used.
109109

110110
--- Common/DataModel/vtkAMRInformation.cxx
111111
+++ Common/DataModel/vtkAMRInformation.cxx
112-
@@ -10,6 +10,7 @@
113-
#include "vtkStructuredGrid.h"
114-
#include "vtkUnsignedIntArray.h"
115-
#include <cassert>
112+
@@ -4,10 +4,11 @@
113+
// VTK_DEPRECATED_IN_9_6_0
114+
#define VTK_DEPRECATION_LEVEL 0
115+
116+
#include "vtkAMRInformation.h"
117+
118+
#include "vtkObjectFactory.h"
116119
+#include <iostream>
117-
#include <set>
118-
120+
119121
VTK_ABI_NAMESPACE_BEGIN
120-
@@ -293,7 +294,7 @@ unsigned int vtkAMRInformation::GetNumberOfDataSets(unsigned int level) const
121-
{
122-
if (level >= this->GetNumberOfLevels())
123-
{
124-
- cerr << "WARNING: No data set at this level" << endl;
125-
+ std::cerr << "WARNING: No data set at this level" << endl;
126-
return 0;
127-
}
128-
return this->NumBlocks[level + 1] - this->NumBlocks[level];
122+
vtkStandardNewMacro(vtkAMRInformation);
123+
VTK_ABI_NAMESPACE_END
129124

130125
--- Common/DataModel/vtkBSPCuts.cxx
131126
+++ Common/DataModel/vtkBSPCuts.cxx

0 commit comments

Comments
 (0)