From ff9cceeb9fe996ac173c8e7916afd89b80c2002d Mon Sep 17 00:00:00 2001 From: artemp Date: Mon, 7 Mar 2016 13:52:58 +0100 Subject: [PATCH] use platform specific macros as return codes (EXIT_SUCCESS/EXIT_FAILURE) + check if extent read from shapefile is valid and has valid width and heoght before creating an index. --- utils/shapeindex/shapeindex.cpp | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/utils/shapeindex/shapeindex.cpp b/utils/shapeindex/shapeindex.cpp index f54508c45..9dcff1189 100644 --- a/utils/shapeindex/shapeindex.cpp +++ b/utils/shapeindex/shapeindex.cpp @@ -72,13 +72,13 @@ int main (int argc,char** argv) if (vm.count("version")) { std::clog << "version 0.3.0" < tree(extent, depth, ratio); @@ -278,5 +283,5 @@ int main (int argc,char** argv) } std::clog << "done!" << std::endl; - return 0; + return EXIT_SUCCESS; }