1205a4b774
...to: "Find implicit conversions from non-'bool' constants (e.g., 'sal_False') to 'bool'". Due to how FALSE is defined as just #define FALSE (0) (i.e., a literal of type 'int') but TRUE is defined as #define TRUE (!FALSE) (i.e., an implicit conversion from 'int' to 'bool') in GLib (see the comment in ConstToBool::VisitImplicitCastExpr), we get more warnings about uses of 'TRUE' than of 'FALSE'. For example, in libreofficekit/source/gtk/lokdocview.cxx there is a warning about the 'TRUE' in g_main_context_iteration(nullptr, TRUE); but not about the 'FALSE' in g_main_context_iteration(nullptr, FALSE); (where the parameter of 'g_main_context_iteration' is of type 'gboolean'). Lets live with that asymmetry for now... (Besides the issues addressed directly in this commit, it also found the two bogus asserts at |
||
---|---|---|
.. | ||
avmediagstreamer.component | ||
gstcommon.hxx | ||
gstframegrabber.cxx | ||
gstframegrabber.hxx | ||
gstmanager.cxx | ||
gstmanager.hxx | ||
gstplayer.cxx | ||
gstplayer.hxx | ||
gstuno.cxx | ||
gstwindow.cxx | ||
gstwindow.hxx |