From aaec51ce3330a96f7a4f0f2ab0ca75f055223c67 Mon Sep 17 00:00:00 2001 From: Stefan Radomski Date: Sat, 28 Jan 2017 10:14:17 +0100 Subject: Builds with MSVC again --- src/uscxml/util/DOM.h | 2 +- test/src/test-utils.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/uscxml/util/DOM.h b/src/uscxml/util/DOM.h index 48ad321..7cacd94 100644 --- a/src/uscxml/util/DOM.h +++ b/src/uscxml/util/DOM.h @@ -80,7 +80,7 @@ public: static std::list filterChildType(const XERCESC_NS::DOMNode::NodeType type, const std::list& nodeSet, bool recurse = false); -protected: + enum Order { POSTFIX, DOCUMENT, diff --git a/test/src/test-utils.cpp b/test/src/test-utils.cpp index 474cf89..dfeed04 100644 --- a/test/src/test-utils.cpp +++ b/test/src/test-utils.cpp @@ -4,7 +4,7 @@ * It is not actually a test as such, but makes sure that the snippets will * actually compile and do what we claim they do. */ -#define protected public +//#define protected public #include "uscxml/config.h" #include "uscxml/Common.h" @@ -35,7 +35,7 @@ void testDOMUtils() { Interpreter interpreter = Interpreter::fromXML(xml, ""); interpreter.step(); - XERCESC_NS::DOMElement* scxml = interpreter.getImpl()->_scxml; + XERCESC_NS::DOMElement* scxml = interpreter.getImpl()->getDocument()->getDocumentElement(); { // postfix -- cgit v0.12