Commit 5400877a authored by Uwe Schulzweida's avatar Uwe Schulzweida
Browse files

Set type of initialized variables to auto.

parent df5405ce
......@@ -347,7 +347,7 @@ CMOR_lite(void *process)
const auto streamID1 = cdoOpenRead(0);
const auto vlistID1 = cdoStreamInqVlist(streamID1);
const auto vlistID2 = vlistDuplicate(vlistID1);
auto vlistID2 = vlistDuplicate(vlistID1);
/* vlistPrint(vlistID2);*/
const auto nvars = vlistNvars(vlistID2);
......
......@@ -643,7 +643,6 @@ get_operator_description(const std::string &p_current_op_name, const std::vector
}
else
{
line = help.at(++operator_section);
// search the operator section for current operator line
while (line.find(p_current_op_name + " ") == std::string::npos && !line.empty() && operator_section < help.size() - 1)
......@@ -658,6 +657,7 @@ get_operator_description(const std::string &p_current_op_name, const std::vector
description = line.substr(line.find_first_not_of(" \t", op_name_start + p_current_op_name.size()), line.size());
}
}
return description;
}
......@@ -681,12 +681,12 @@ operatorPrintList(bool print_no_output)
output_list = get_sorted_operator_name_list();
}
unsigned long list_length = output_list.size();
auto list_length = output_list.size();
module_t *current_module;
// help variables
for (unsigned long out_list_idx = 0; out_list_idx < list_length; out_list_idx++)
for (size_t out_list_idx = 0; out_list_idx < list_length; out_list_idx++)
{
std::string current_op_name = output_list[out_list_idx];
current_module = &modules[get_module_name_to(current_op_name)];
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment