diff options
-rw-r--r-- | documentation/cxx/hybrid/guide/index.xhtml | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/documentation/cxx/hybrid/guide/index.xhtml b/documentation/cxx/hybrid/guide/index.xhtml index dead3dc..3d414ce 100644 --- a/documentation/cxx/hybrid/guide/index.xhtml +++ b/documentation/cxx/hybrid/guide/index.xhtml @@ -955,13 +955,11 @@ main (int argc, char* argv[]) hello_s.root_name ()); ostringstream ostr; - hello_s.pre (*h); + hello_s.pre (h); doc_s.serialize (ostr, xml_schema::document_simpl::pretty_print); hello_s.post (); - delete h; - - cout << ostr.c_str () << endl; + cout << ostr.str () << endl; } catch (const xml_schema::serializer_exception& e) { |