aboutsummaryrefslogtreecommitdiff
path: root/documentation
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2010-01-12 16:32:40 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2010-01-12 16:32:40 +0200
commitf6a14d74a62511977f87ba2e6f9116fc97fbb1a4 (patch)
tree7f8017ca0f8c21fe4698766d519b8c7fc67d9e9c /documentation
parent6802b7627722433194f162f5362168385c7461fb (diff)
Fix example in the documentation
Diffstat (limited to 'documentation')
-rw-r--r--documentation/cxx/hybrid/guide/index.xhtml6
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 &lt;&lt; ostr.c_str () &lt;&lt; endl;
+ cout &lt;&lt; ostr.str () &lt;&lt; endl;
}
catch (const xml_schema::serializer_exception&amp; e)
{