X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fsupport%2FTranslator.h;h=2e35a69f49bb0608efb2c26ae2a417387c5374bb;hb=10b4a4718539ea45d908dc3d051ae2284f9678e6;hp=1469c1e6825e0eaa89c91bc8971d44d8594d6ed8;hpb=ee120bd80808cf8c376d9fe9830c6e269b94837c;p=lyx.git diff --git a/src/support/Translator.h b/src/support/Translator.h index 1469c1e682..2e35a69f49 100644 --- a/src/support/Translator.h +++ b/src/support/Translator.h @@ -12,7 +12,7 @@ #ifndef TRANSLATOR_H #define TRANSLATOR_H -#include +#include "support/lassert.h" #include #include @@ -63,7 +63,7 @@ public: /// Find the mapping for the first argument T2 const & find(T1 const & first) const { - BOOST_ASSERT(!map.empty()); + LASSERT(!map.empty(), return default_t2); const_iterator it = map.begin(); const_iterator end = map.end(); for (; it != end; ++it) @@ -75,7 +75,7 @@ public: /// Find the mapping for the second argument T1 const & find(T2 const & second) const { - BOOST_ASSERT(!map.empty()); + LASSERT(!map.empty(), return default_t1); const_iterator it = map.begin(); const_iterator end = map.end(); for (; it != end; ++it)