From 2915ddaa1c176a47d6c62d3b25bad9bb369c1448 Mon Sep 17 00:00:00 2001 From: Arne Juul Date: Wed, 20 Jun 2018 10:17:42 +0200 Subject: add and use HDR_ABORT instead --- juniper/src/vespa/juniper/SummaryConfig.h | 2 ++ juniper/src/vespa/juniper/appender.h | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) (limited to 'juniper') 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 namespace juniper { @@ -119,7 +119,7 @@ public: _sumconf->dots()[0] == '<'); break; default: - assert(false); + HDR_ABORT("should not be reached"); break; } -- cgit v1.2.3