PVS-Studio report

Caolán McNamara caolan.mcnamara at collabora.com
Thu Nov 21 12:41:15 UTC 2024


On Thu, 2024-11-21 at 12:51 +0100, Xisco Fauli wrote:
> -> it can be fixed with 
> https://pvs-studio.com/en/docs/manual/0040/#IDBD1CC960F7

Do I read it right, that it just has to see the comment somewhere, e.g.
if added to include/sal/config.h to treat all asserts like that ?

> bool bDropDown = false;
> xPropertySet->getPropertyValue(u"DropDown"_ustr) >>= bDropDown;
> if (bDropDown)
> 
> ↑ V547 Expression 'bDropDown' is always false.

That operator overload is a constant source of such pain :-)


More information about the LibreOffice mailing list