aboutsummaryrefslogtreecommitdiff
path: root/src/tools
diff options
context:
space:
mode:
authorChaplain <aionthefirst@gmail.com>2011-09-01 22:38:32 +0300
committerChaplain <aionthefirst@gmail.com>2011-09-01 22:38:32 +0300
commitbea649d0451271eda60aadff6040c3e6a9899a3f (patch)
tree49383b7f9b8caac38552a4c6d0c65c34c22cc4e2 /src/tools
parent0046083509304113a951519191a6a4d251cf2e5c (diff)
Core: cleanup.
*remove some garbage *little bit moore const func *fix process of args in vmap3_extractor
Diffstat (limited to 'src/tools')
-rw-r--r--src/tools/vmap3_extractor/vmapexport.cpp13
1 files changed, 6 insertions, 7 deletions
diff --git a/src/tools/vmap3_extractor/vmapexport.cpp b/src/tools/vmap3_extractor/vmapexport.cpp
index 2be03d85d97..689691e1d91 100644
--- a/src/tools/vmap3_extractor/vmapexport.cpp
+++ b/src/tools/vmap3_extractor/vmapexport.cpp
@@ -379,17 +379,16 @@ bool processArgv(int argc, char ** argv, const char *versionString)
{
bool result = true;
hasInputPathParam = false;
- bool preciseVectorData = false;
- for(int i=1; i< argc; ++i)
+ for (int i=1; i < argc; ++i)
{
- if(strcmp("-s",argv[i]) == 0)
+ if (strcmp("-s", argv[i]) == 0)
{
preciseVectorData = false;
}
- else if(strcmp("-d",argv[i]) == 0)
+ else if (strcmp("-d", argv[i]) == 0)
{
- if((i+1)<argc)
+ if ((i + 1) < argc)
{
hasInputPathParam = true;
strcpy(input_path, argv[i+1]);
@@ -402,11 +401,11 @@ bool processArgv(int argc, char ** argv, const char *versionString)
result = false;
}
}
- else if(strcmp("-?",argv[1]) == 0)
+ else if (strcmp("-?", argv[1]) == 0)
{
result = false;
}
- else if(strcmp("-l",argv[i]) == 0)
+ else if (strcmp("-l", argv[i]) == 0)
{
preciseVectorData = true;
}