]> git.lyx.org Git - lyx.git/blobdiff - src/support/Translator.h
Expose python 3 support to some testing
[lyx.git] / src / support / Translator.h
index d5aea55dff93e686a8cc4f77790eae336b7a55f6..2e35a69f49bb0608efb2c26ae2a417387c5374bb 100644 (file)
@@ -12,7 +12,7 @@
 #ifndef TRANSLATOR_H
 #define TRANSLATOR_H
 
-#include "support/assert.h"
+#include "support/lassert.h"
 
 #include <vector>
 #include <utility>
@@ -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)