From f6a14d74a62511977f87ba2e6f9116fc97fbb1a4 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Tue, 12 Jan 2010 16:32:40 +0200 Subject: Fix example in the documentation --- documentation/cxx/hybrid/guide/index.xhtml | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'documentation') 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) { -- cgit v1.1