[Digikam-devel] New Defects reported by Coverity Scan for digiKam
scan-admin at coverity.com
scan-admin at coverity.com
Tue Dec 1 01:39:47 GMT 2015
Hi,
Please find the latest report on new defect(s) introduced to digiKam found with Coverity Scan.
3 new defect(s) introduced to digiKam found with Coverity Scan.
New defect(s) Reported-by: Coverity Scan
Showing 3 of 3 defect(s)
** CID 1341449: Incorrect expression (IDENTICAL_BRANCHES)
/core/app/moc_mediaplayerview.cpp: 85 in Digikam::MediaPlayerMouseClickFilter::qt_metacall(QMetaObject::Call, int, void **)()
________________________________________________________________________________________________________
*** CID 1341449: Incorrect expression (IDENTICAL_BRANCHES)
/core/app/moc_mediaplayerview.cpp: 85 in Digikam::MediaPlayerMouseClickFilter::qt_metacall(QMetaObject::Call, int, void **)()
79 return QObject::qt_metacast(_clname);
80 }
81
82 int Digikam::MediaPlayerMouseClickFilter::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
83 {
84 _id = QObject::qt_metacall(_c, _id, _a);
>>> CID 1341449: Incorrect expression (IDENTICAL_BRANCHES)
>>> The same code is executed when the condition "_id < 0" is true or false, because the code in the if-then branch and after the if statement is identical. Should the if statement be removed?
85 if (_id < 0)
86 return _id;
87 return _id;
88 }
89 struct qt_meta_stringdata_Digikam__MediaPlayerView_t {
90 QByteArrayData data[18];
** CID 1341448: Incorrect expression (IDENTICAL_BRANCHES)
/core/utilities/firstrun/moc_collectionpage.cpp: 85 in Digikam::CollectionPage::qt_metacall(QMetaObject::Call, int, void **)()
________________________________________________________________________________________________________
*** CID 1341448: Incorrect expression (IDENTICAL_BRANCHES)
/core/utilities/firstrun/moc_collectionpage.cpp: 85 in Digikam::CollectionPage::qt_metacall(QMetaObject::Call, int, void **)()
79 return AssistantDlgPage::qt_metacast(_clname);
80 }
81
82 int Digikam::CollectionPage::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
83 {
84 _id = AssistantDlgPage::qt_metacall(_c, _id, _a);
>>> CID 1341448: Incorrect expression (IDENTICAL_BRANCHES)
>>> The same code is executed when the condition "_id < 0" is true or false, because the code in the if-then branch and after the if statement is identical. Should the if statement be removed?
85 if (_id < 0)
86 return _id;
87 return _id;
88 }
** CID 1341447: Incorrect expression (IDENTICAL_BRANCHES)
/core/utilities/firstrun/moc_databasepage.cpp: 85 in Digikam::DatabasePage::qt_metacall(QMetaObject::Call, int, void **)()
________________________________________________________________________________________________________
*** CID 1341447: Incorrect expression (IDENTICAL_BRANCHES)
/core/utilities/firstrun/moc_databasepage.cpp: 85 in Digikam::DatabasePage::qt_metacall(QMetaObject::Call, int, void **)()
79 return AssistantDlgPage::qt_metacast(_clname);
80 }
81
82 int Digikam::DatabasePage::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
83 {
84 _id = AssistantDlgPage::qt_metacall(_c, _id, _a);
>>> CID 1341447: Incorrect expression (IDENTICAL_BRANCHES)
>>> The same code is executed when the condition "_id < 0" is true or false, because the code in the if-then branch and after the if statement is identical. Should the if statement be removed?
85 if (_id < 0)
86 return _id;
87 return _id;
88 }
________________________________________________________________________________________________________
To view the defects in Coverity Scan visit, https://scan.coverity.com/projects/digikam?tab=overview
To manage Coverity Scan email notifications for "digikam-devel at kde.org", click https://scan.coverity.com/subscriptions/edit?email=digikam-devel%40kde.org&token=621bfe7450f4a870432a2a9c106aa3a8
More information about the Digikam-devel
mailing list