lyx_mirror/development/coverity_modeling.cpp
Jean-Marc Lasgouttes 2a0e4c199c Fix coverity issues about exceptions
There a some exceptions related to the fact that BOOST_ASSERT throws
an unhandled exception, which is fait enough. This is handled by
uploading a modeling file to coverity.

The second batch of issues are related to the use of lexical_cast in
convert.cpp. We use now a wrapper around boost::lexical_cast that does
not throw but return empty strings instead. I am not sure actually of
when lexical_cast could fail.
2017-03-24 16:47:35 +01:00

14 lines
201 B
C++

// This file is a modeling file for coverity
namespace lyx {
// Tell coverity that this function always exits
void doAssertWithCallstack(bool value)
{
if (!value) {
__coverity_panic__();
}
}
}