aboutsummaryrefslogtreecommitdiff
path: root/examples/cxx/hybrid/minimal/driver.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'examples/cxx/hybrid/minimal/driver.cxx')
-rw-r--r--examples/cxx/hybrid/minimal/driver.cxx9
1 files changed, 6 insertions, 3 deletions
diff --git a/examples/cxx/hybrid/minimal/driver.cxx b/examples/cxx/hybrid/minimal/driver.cxx
index f1a43af..6573237 100644
--- a/examples/cxx/hybrid/minimal/driver.cxx
+++ b/examples/cxx/hybrid/minimal/driver.cxx
@@ -204,17 +204,20 @@ main (int argc, char* argv[])
doc_s.add_no_namespace_schema ("people.xsd");
- if (se = doc_s._error ())
+ se = doc_s._error ();
+ if (se)
break;
people_s.pre (*ppl);
- if (se = people_s._error ())
+ se = people_s._error ();
+ if (se)
break;
doc_s.serialize (w, xml_schema::document_simpl::pretty_print);
- if (se = doc_s._error ())
+ se = doc_s._error ();
+ if (se)
break;
people_s.post ();