Skip to content
Snippets Groups Projects
Commit fb59a790 authored by Dmitri Naumov's avatar Dmitri Naumov
Browse files

Use 'false' instead of 0 for booleans.

parent 61dcedcb
No related branches found
No related tags found
No related merge requests found
......@@ -127,7 +127,7 @@ int main (int argc, char* argv[])
' ',
"0.1");
TCLAP::ValueArg<bool> gml_arg("", "gml",
"if switched on write found nodes to file in gml format", false, 0, "bool");
"if switched on write found nodes to file in gml format", false, false, "bool");
cmd.add(gml_arg);
TCLAP::ValueArg<std::string> output_base_fname("o", "output-base-file-name",
......
......@@ -141,7 +141,7 @@ int main (int argc, char* argv[])
"new property value (data type int)", false, 0, "number");
cmd.add(int_property_arg);
TCLAP::ValueArg<bool> bool_property_arg("b", "bool-property-value",
"new property value (data type bool)", false, 0, "boolean value");
"new property value (data type bool)", false, false, "boolean value");
cmd.add(bool_property_arg);
TCLAP::ValueArg<std::string> property_name_arg("n", "property-name",
"name of property in the mesh", false, "MaterialIDs", "string");
......
......@@ -181,7 +181,7 @@ bool AsciiRasterInterface::readSurferHeader(
else
{
ERR("Error in readSurferHeader() - Anisotropic cellsize detected.");
return 0;
return false;
}
header.no_data = min-1;
in >> min >> max;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment