[BUFIX] Fixed invalid variable name. Removed redundant enum value

This commit is contained in:
hasherezade
2024-12-14 06:38:53 -08:00
parent 06ec39665e
commit 26e2e1fd49
3 changed files with 1 additions and 3 deletions
-1
View File
@@ -93,7 +93,6 @@ class t_results_filter(ctypes.c_int):
SHOW_SUSPICIOUS_AND_ERRORS = 5
SHOW_SUCCESSFUL_ONLY = 6
SHOW_ALL = 7
SHOW_FILTERS_MAX = 8
class t_report_type(ctypes.c_int):
REPORT_NONE = 0
-1
View File
@@ -36,7 +36,6 @@ namespace pesieve {
SHOW_SUSPICIOUS_AND_ERRORS = SHOW_ERRORS | SHOW_SUSPICIOUS,
SHOW_SUCCESSFUL_ONLY = SHOW_NOT_SUSPICIOUS | SHOW_SUSPICIOUS,
SHOW_ALL = SHOW_ERRORS | SHOW_NOT_SUSPICIOUS | SHOW_SUSPICIOUS,
SHOW_FILTERS_MAX ///< terminator of the list of filters
} t_results_filter;
typedef enum {
+1 -1
View File
@@ -88,7 +88,7 @@ public:
if (enumParam) {
this->addParam(enumParam);
this->setInfo(PARAM_RESULTS_FILTER, "Define what type of results are reported.");
for (size_t i = SHOW_SUSPICIOUS; i < SHOW_FILTERS_COUNT; i++) {
for (size_t i = SHOW_SUSPICIOUS; i <= SHOW_ALL; i++) {
t_results_filter mode = (t_results_filter)(i);
std::string info = translate_results_filter(mode);
if (info.empty()) continue;