summaryrefslogtreecommitdiff
path: root/src/core/XML.cpp
diff options
context:
space:
mode:
authorAndreas Stöckel <astoecke@techfak.uni-bielefeld.de>2015-01-18 18:22:14 +0100
committerAndreas Stöckel <astoecke@techfak.uni-bielefeld.de>2015-01-18 18:22:14 +0100
commita30e627ffccf36384689295ce54af32e38ef5ef8 (patch)
treeffd03045f2f292da9d9f2d684d166093abaf7a21 /src/core/XML.cpp
parent1ebaaf08c0bc7de704a3c2a423f572c54c4a069b (diff)
Droped Rtti<T> class, using RttiType instead
Diffstat (limited to 'src/core/XML.cpp')
-rw-r--r--src/core/XML.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/core/XML.cpp b/src/core/XML.cpp
index 9b621a6..b8ee11d 100644
--- a/src/core/XML.cpp
+++ b/src/core/XML.cpp
@@ -19,7 +19,7 @@
#include <sstream>
#include <core/common/Rtti.hpp>
-#include <core/common/TypedRttiBuilder.hpp>
+#include <core/common/RttiBuilder.hpp>
#include "XML.hpp"
@@ -118,15 +118,15 @@ void Text::doSerialize(std::ostream &out, unsigned int tabdepth, bool pretty)
namespace RttiTypes
{
- const Rtti<xml::Node> XMLNode = RttiBuilder("XMLNode");
- const Rtti<xml::Element> XMLElement =
- TypedRttiBuilder<xml::Element>("XMLElement")
+ const RttiType XMLNode = RttiBuilder<xml::Node>("XMLNode");
+ const RttiType XMLElement =
+ RttiBuilder<xml::Element>("XMLElement")
.parent(&XMLNode)
.composedOf(&XMLNode)
.property("name", {RttiTypes::String,
{[](const xml::Element *obj) {
return Variant::fromString(obj->name);
}}});
- const Rtti<xml::Text> XMLText = RttiBuilder("XMLText").parent(&XMLNode);
+ const RttiType XMLText = RttiBuilder<xml::Text>("XMLText").parent(&XMLNode);
}
}