summaryrefslogtreecommitdiff
path: root/src/plugins/html
diff options
context:
space:
mode:
authorBenjamin Paassen <bpaassen@techfak.uni-bielefeld.de>2015-02-11 17:54:48 +0100
committerBenjamin Paassen <bpaassen@techfak.uni-bielefeld.de>2015-02-11 17:54:48 +0100
commit2f75ac166594b6bc2ea30901669304eca23174ec (patch)
tree0995fdfd968a6dfdae2ca93e83b76a2686a02abc /src/plugins/html
parent76df276a0c30013c8d7fa98bedc6b0fbadb56699 (diff)
changed semantics of default field, now referring to the only TREE field.
Diffstat (limited to 'src/plugins/html')
-rw-r--r--src/plugins/html/DemoOutput.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/html/DemoOutput.cpp b/src/plugins/html/DemoOutput.cpp
index d041c1d..cb34cbe 100644
--- a/src/plugins/html/DemoOutput.cpp
+++ b/src/plugins/html/DemoOutput.cpp
@@ -324,7 +324,7 @@ Rooted<xml::Element> DemoHTMLTransformer::transformParagraph(
if (childDescriptorName == "text") {
Handle<DocumentPrimitive> primitive =
t->getField()[0].cast<DocumentPrimitive>();
- if (primitive.isNull()) {
+ if (primitive == nullptr) {
throw OusiaException("Text field is not primitive!");
}
current->addChild(new xml::Text(