From fb59a79018b7f9daa1fb8e55a1882f228b78d003 Mon Sep 17 00:00:00 2001 From: Dmitri Naumov <github@naumov.de> Date: Thu, 16 Jun 2016 03:00:32 +0000 Subject: [PATCH] Use 'false' instead of 0 for booleans. --- .../Utils/MeshEdit/CreateBoundaryConditionsAlongPolylines.cpp | 2 +- .../Utils/MeshEdit/ResetPropertiesInPolygonalRegion.cpp | 2 +- GeoLib/IO/AsciiRasterInterface.cpp | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Applications/Utils/MeshEdit/CreateBoundaryConditionsAlongPolylines.cpp b/Applications/Utils/MeshEdit/CreateBoundaryConditionsAlongPolylines.cpp index 4c99a8fa8af..b845923089e 100644 --- a/Applications/Utils/MeshEdit/CreateBoundaryConditionsAlongPolylines.cpp +++ b/Applications/Utils/MeshEdit/CreateBoundaryConditionsAlongPolylines.cpp @@ -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", diff --git a/Applications/Utils/MeshEdit/ResetPropertiesInPolygonalRegion.cpp b/Applications/Utils/MeshEdit/ResetPropertiesInPolygonalRegion.cpp index 72cb7ca9bcc..e0455f37d12 100644 --- a/Applications/Utils/MeshEdit/ResetPropertiesInPolygonalRegion.cpp +++ b/Applications/Utils/MeshEdit/ResetPropertiesInPolygonalRegion.cpp @@ -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"); diff --git a/GeoLib/IO/AsciiRasterInterface.cpp b/GeoLib/IO/AsciiRasterInterface.cpp index 59f9e27eda3..d8eca1d222a 100644 --- a/GeoLib/IO/AsciiRasterInterface.cpp +++ b/GeoLib/IO/AsciiRasterInterface.cpp @@ -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; -- GitLab