diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2013-03-13 12:42:37 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2013-03-13 12:42:37 +0200 |
commit | ce3dfdff0d03697bf0c9e0cc9fb45dc6ef7c4ba9 (patch) | |
tree | 8aee46f0a3382e300f5970322933edb638709e52 /cutl/xml/serializer.cxx | |
parent | 29aff5bf19aa23c784bb09b74dc388ccb5f495e2 (diff) |
Add support for XML serializing values other than std::string
Diffstat (limited to 'cutl/xml/serializer.cxx')
-rw-r--r-- | cutl/xml/serializer.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
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)); } } |