Menu

#12 check_user_limits.cpp: 3 * bad test ?

v1.0 (example)
open
nobody
None
5
2015-08-09
2015-08-09
dcb
No

1.

check_user_limits.cpp:185]: (style) Comparison of a function returning boolean value using relational (<, >, <= or >=) operator.

Source code is

if ((current_user->get_appisactivePD(i) > 0) && !(current_limits->get_appnamePD(i).isEmpty())) {

but

$ fgrep get_appisactivePD find ../BUILD/kchildlock-0.90.4.2 -name \*.h -print
../BUILD/kchildlock-0.90.4.2/daemon/KchildlockDaemon.h: bool get_appisactivePD (int index);
$

Duplicates at lines 191 and 59 of the same file.

Discussion


Log in to post a comment.

MongoDB Logo MongoDB