From 9e28e796d59fcde68e80dc301192af029452b4c5 Mon Sep 17 00:00:00 2001 From: Houtan Bastani Date: Tue, 13 Oct 2015 14:37:50 +0200 Subject: [PATCH] preprocessor: simplify code --- preprocessor/ComputingTasks.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/preprocessor/ComputingTasks.cc b/preprocessor/ComputingTasks.cc index 1b4c0b37d..cabfed99c 100644 --- a/preprocessor/ComputingTasks.cc +++ b/preprocessor/ComputingTasks.cc @@ -127,8 +127,7 @@ PerfectForesightSolverStatement::checkPass(ModFileStructure &mod_file_struct, Wa { mod_file_struct.perfect_foresight_solver_present = true; // Fill in option_occbin of mod_file_struct - OptionsList::num_options_t::const_iterator it = options_list.num_options.find("occbin"); - if (it != options_list.string_options.end()) + if (options_list.num_options.find("occbin") != options_list.num_options.end()) mod_file_struct.occbin_option = true; }