From ce3dfdff0d03697bf0c9e0cc9fb45dc6ef7c4ba9 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Wed, 13 Mar 2013 12:42:37 +0200 Subject: Add support for XML serializing values other than std::string --- cutl/xml/serializer.cxx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'cutl/xml/serializer.cxx') diff --git a/cutl/xml/serializer.cxx b/cutl/xml/serializer.cxx index 66c78a4..3919635 100644 --- a/cutl/xml/serializer.cxx +++ b/cutl/xml/serializer.cxx @@ -78,8 +78,8 @@ namespace cutl } serializer:: - serializer (ostream& os, const string& name, unsigned short ind) - : os_ (os), os_state_ (os.exceptions ()), name_ (name), depth_ (0) + serializer (ostream& os, const string& oname, unsigned short ind) + : os_ (os), os_state_ (os.exceptions ()), oname_ (oname), depth_ (0) { // Temporarily disable exceptions on the stream. // @@ -106,7 +106,7 @@ namespace cutl { string m (genxGetErrorMessage (s_, e)); genxDispose (s_); - throw serialization (name, m); + throw serialization (oname, m); } } @@ -126,7 +126,7 @@ namespace cutl os_.exceptions (os_state_); // Fall through. default: - throw serialization (name_, genxGetErrorMessage (s_, e)); + throw serialization (oname_, genxGetErrorMessage (s_, e)); } } -- cgit v1.1