Commit ac9c897b authored by Allison Vacanti's avatar Allison Vacanti Committed by Kitware Robot

Merge topic 'xml_writer_speed_fix'

8a095a0d Improve performance of XML writers.
Acked-by: Kitware Robot's avatarKitware Robot <kwrobot@kitware.com>
Acked-by: Scott Wittenburg's avatarScott Wittenburg <scott.wittenburg@kitware.com>
Acked-by: David E. DeMarle's avatarDavid E. DeMarle <dave.demarle@kitware.com>
Merge-request: !4753
parents 075c4b3d 8a095a0d
......@@ -397,7 +397,7 @@ void vtkXMLDataElement::PrintCharacterData(ostream &os, vtkIndent indent)
// &lt;, &gt;, &amp;, &quot;, &apos;, respectively.
void vtkXMLDataElement::PrintWithEscapedData(ostream& os, const char* data)
{
for(size_t i=0;i<strlen(data);i++)
for(size_t i=0; data[i] != 0; i++)
{
switch(data[i])
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment