diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2010-01-12 16:32:40 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2010-01-12 16:32:40 +0200 |
commit | f6a14d74a62511977f87ba2e6f9116fc97fbb1a4 (patch) | |
tree | 7f8017ca0f8c21fe4698766d519b8c7fc67d9e9c | |
parent | 6802b7627722433194f162f5362168385c7461fb (diff) |
Fix example in the documentation
-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) { |