Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Scott Wittenburg
VTK
Commits
c22efd32
Commit
c22efd32
authored
May 26, 2005
by
Brad King
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
COMP: Fixed unreachable code warning.
parent
b49c812d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
6 deletions
+10
-6
IO/vtkFacetWriter.cxx
IO/vtkFacetWriter.cxx
+10
-6
No files found.
IO/vtkFacetWriter.cxx
View file @
c22efd32
...
...
@@ -34,7 +34,7 @@
#include <vtkstd/string>
#include <vtkstd/vector>
vtkCxxRevisionMacro
(
vtkFacetWriter
,
"1.
4
"
);
vtkCxxRevisionMacro
(
vtkFacetWriter
,
"1.
5
"
);
vtkStandardNewMacro
(
vtkFacetWriter
);
//----------------------------------------------------------------------------
...
...
@@ -153,11 +153,15 @@ int vtkFacetWriter::WriteDataToStream(ostream* ost, vtkPolyData* data)
if
(
data
->
GetVerts
()
->
GetNumberOfCells
()
)
{
if
(
written
)
{
vtkErrorMacro
(
"Multiple different cells in the poly data"
);
return
0
;
}
// This test is needed if another cell type is written above this
// block. We must remove it here because it produces an
// unreachable code warning.
//
//if ( written )
// {
// vtkErrorMacro("Multiple different cells in the poly data");
// return 0;
// }
ca
=
data
->
GetVerts
();
numCells
=
ca
->
GetNumberOfCells
();
vtkIdType
numPts
=
0
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment