diff options
author | jsdelfino <jsdelfino@13f79535-47bb-0310-9956-ffa450edef68> | 2012-12-11 03:51:03 +0000 |
---|---|---|
committer | jsdelfino <jsdelfino@13f79535-47bb-0310-9956-ffa450edef68> | 2012-12-11 03:51:03 +0000 |
commit | ae0b7c0063db6236be2d7cf01ddbf2159f77c98c (patch) | |
tree | 2f64d65d018634b8728623e2ca99514541fab8aa /sca-cpp/trunk/modules/scheme/value-xml.cpp | |
parent | 1f3796522a078dda5906395ba471d151ad694b6b (diff) |
Port kernel to C++11 and refactor some of the core modules. Convert functors to lambdas, and add C++ const, noexcept and inline annotations to get more efficient generated code.
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@1419985 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to '')
-rw-r--r-- | sca-cpp/trunk/modules/scheme/element-xml.cpp (renamed from sca-cpp/trunk/modules/scheme/value-xml.cpp) | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sca-cpp/trunk/modules/scheme/value-xml.cpp b/sca-cpp/trunk/modules/scheme/element-xml.cpp index ff785899c6..c7bc7661ab 100644 --- a/sca-cpp/trunk/modules/scheme/value-xml.cpp +++ b/sca-cpp/trunk/modules/scheme/element-xml.cpp @@ -25,15 +25,15 @@ #include "fstream.hpp" #include "string.hpp" -#include "xml.hpp" #include "element.hpp" +#include "../xml/xml.hpp" #include "eval.hpp" namespace tuscany { namespace scheme { -int valueXML() { - failable<list<string> > s = writeXML(readValue(cin)); +const int valueXML() { + const failable<list<string> > s = xml::writeElements(content(readValue(cin))); if (!hasContent(s)) { cerr << reason(s) << " : " << rcode(s); return 1; |