mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-22 13:18:28 +00:00
2a0e4c199c
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.
14 lines
201 B
C++
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__();
|
|
}
|
|
}
|
|
|
|
}
|