X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fsupport%2FTranslator.h;h=2e35a69f49bb0608efb2c26ae2a417387c5374bb;hb=7b0f9d95248820bc70b820dd6b558de4a6713bae;hp=d5aea55dff93e686a8cc4f77790eae336b7a55f6;hpb=7f461f4392a19cf488dec005d2f12cfea83655d9;p=lyx.git diff --git a/src/support/Translator.h b/src/support/Translator.h index d5aea55dff..2e35a69f49 100644 --- a/src/support/Translator.h +++ b/src/support/Translator.h @@ -12,7 +12,7 @@ #ifndef TRANSLATOR_H #define TRANSLATOR_H -#include "support/assert.h" +#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 { - LASSERT(!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 { - LASSERT(!map.empty(), /**/); + LASSERT(!map.empty(), return default_t1); const_iterator it = map.begin(); const_iterator end = map.end(); for (; it != end; ++it)