Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#135 qucssettingsdialog.cpp line 719

0.0.18
closed-fixed
Richard C
None
5
2014-02-05
2013-11-28
Andrei
No

qucssettingsdialog.cpp line 719 - "if (pathfinfo.isDir() & !pathfinfo.isSymLink() & !path.endsWith("."))"

Boolean result is used in bitwise operation. May be it bug.

Snapshot qucs-git-b73c7e0eb912fcd2616353c642afd8b3d3178a85.

I use cppcheck. Thanks.

Discussion

  • Richard C
    Richard C
    2014-02-05

    • status: open --> closed-fixed
    • assigned_to: Michael Margraf --> Richard C
     
  • Richard C
    Richard C
    2014-02-05

    This was ok, but to silence future warnings I've changed to use the proper boolean and operator, i.e.

    if (pathfinfo.isDir() && !pathfinfo.isSymLink() && !path.endsWith("."))