From: Richard Heck Date: Wed, 27 Mar 2013 18:45:16 +0000 (-0400) Subject: Continuing here will crash us. This shouldn't be an issue, but X-Git-Tag: 2.1.0beta1~473 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=7a6b717f5e50eda25321156cf9c8cf91ec9b18bb;p=features.git Continuing here will crash us. This shouldn't be an issue, but it seems worth doing something sensible. --- diff --git a/src/TocBackend.cpp b/src/TocBackend.cpp index c8bf4adf48..1df2adc576 100644 --- a/src/TocBackend.cpp +++ b/src/TocBackend.cpp @@ -105,7 +105,7 @@ Toc const & TocBackend::toc(string const & type) const { // Is the type already supported? TocList::const_iterator it = tocs_.find(type); - LASSERT(it != tocs_.end(), /**/); + LASSERT(it != tocs_.end(), { static Toc dummy; return dummy; }); return it->second; }