check_user_limits.cpp: 3 * bad test ?
Brought to you by:
rene_landert
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.