summaryrefslogtreecommitdiffstats
path: root/juniper
diff options
context:
space:
mode:
authorArne Juul <arnej@yahoo-inc.com>2018-06-20 10:17:42 +0200
committerArne Juul <arnej@yahoo-inc.com>2018-06-20 10:17:42 +0200
commit2915ddaa1c176a47d6c62d3b25bad9bb369c1448 (patch)
tree3706af052360b9ef219d34ebf041d788cb92dd3d /juniper
parent44fc1380b66867958f89c47ac8752926b3787a4d (diff)
add and use HDR_ABORT instead
Diffstat (limited to 'juniper')
-rw-r--r--juniper/src/vespa/juniper/SummaryConfig.h2
-rw-r--r--juniper/src/vespa/juniper/appender.h4
2 files changed, 4 insertions, 2 deletions
diff --git a/juniper/src/vespa/juniper/SummaryConfig.h b/juniper/src/vespa/juniper/SummaryConfig.h
index 77e7b77e004..4a6a56fad9c 100644
--- a/juniper/src/vespa/juniper/SummaryConfig.h
+++ b/juniper/src/vespa/juniper/SummaryConfig.h
@@ -27,6 +27,8 @@ public:
ConfigFlag esc_markup,
ConfigFlag preserve_white_space_);
+ ~SummaryConfig() {}
+
inline const std::string & highlight_on() const { return _highlight_on; }
inline const std::string & highlight_off() const { return _highlight_off; }
inline const std::string & dots() const { return _dots; }
diff --git a/juniper/src/vespa/juniper/appender.h b/juniper/src/vespa/juniper/appender.h
index 39ea3a649fb..3afb8b1494d 100644
--- a/juniper/src/vespa/juniper/appender.h
+++ b/juniper/src/vespa/juniper/appender.h
@@ -1,7 +1,7 @@
// Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#pragma once
-/* $Id: */
+#include <vespa/vespalib/util/hdr_abort.h>
namespace juniper {
@@ -119,7 +119,7 @@ public:
_sumconf->dots()[0] == '<');
break;
default:
- assert(false);
+ HDR_ABORT("should not be reached");
break;
}