[osg-users] osgQt Coverity Scan reported issue, Qt experts please chip in.

Robert Osfield robert.osfield at gmail.com
Fri Jun 24 11:32:39 PDT 2016


Hi Jan,

On 24 June 2016 at 14:20, Jan Ciger <jan.ciger at gmail.com> wrote:
> Could you, please, post the report from Coverity?

Will try below, but the source/defect browser they provides a nice way
of exploring related code so worth logging in if you can.

> The link above demands
> login from me.

If you have a github account you should be able to login in with this
account.  Alternatively you can create your own account for Coverity.

> I have done quite a bit of Qt development, so I can check
> what the deal is.

Title : Inferred misuse of enum

Text:

An enumeration value for one enum type may be misinterpreted as a
different, unrelated enumeration value in a different type. An
enumeration value in one type may have no meaningful interpretation in
another enum type, leading to a range of logic errors.

In osgQt::QGraphicsViewAdapter::handleKeyEvent(int, bool): An integer
expression which was inferred to have an enum type is mixed with a
different enum type


Attach is a screen snaptshot of the source browser.  The source I also
included in my previous post.

Robert.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: QtError.png
Type: image/png
Size: 79510 bytes
Desc: not available
URL: <http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20160624/6a466257/attachment-0003.png>


More information about the osg-users mailing list