Coverity is right to say that we should check the return value.
#include "frontends/FontMetrics.h"
#include "frontends/FontMetrics.h"
+#include "support/debug.h"
#include "support/docstream.h"
#include "support/lstrings.h"
#include "support/lyxlib.h"
#include "support/docstream.h"
#include "support/lstrings.h"
#include "support/lyxlib.h"
GlueLength::GlueLength(string const & data)
{
GlueLength::GlueLength(string const & data)
{
- // false positive from coverity
- // coverity[CHECKED_RETURN]
- isValidGlueLength(data, this);
+ if (!isValidGlueLength(data, this))
+ LYXERR0("Invalid glue length " + data);