Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
VTK
VTK
Commits
52914a21
Commit
52914a21
authored
Jan 21, 2003
by
Andy Cedilnik
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Improve parser, so that on parse error it stops parsing
parent
1af6b77c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
IO/vtkXMLParser.cxx
IO/vtkXMLParser.cxx
+2
-2
No files found.
IO/vtkXMLParser.cxx
View file @
52914a21
...
...
@@ -22,7 +22,7 @@
#include <ctype.h>
#include <sys/stat.h>
vtkCxxRevisionMacro
(
vtkXMLParser
,
"1.1
4
"
);
vtkCxxRevisionMacro
(
vtkXMLParser
,
"1.1
5
"
);
vtkStandardNewMacro
(
vtkXMLParser
);
//----------------------------------------------------------------------------
...
...
@@ -243,7 +243,7 @@ int vtkXMLParser::ParseXML()
// to not check the error condition on the fin.read() before using
// the data, but the fin.gcount() will be zero if an error occurred.
// Therefore, the loop should be safe everywhere.
while
(
!
this
->
ParsingComplete
()
&&
in
)
while
(
!
this
->
ParseError
&&
!
this
->
ParsingComplete
()
&&
in
)
{
in
.
read
(
buffer
,
bufferSize
);
if
(
in
.
gcount
())
...
...
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