Skip to content

Commit f2acfb0

Browse files
authored
Merge pull request #1677 from Karry/uninitialized-arg
initialize help argument
2 parents 2b2ba6b + 4106ded commit f2acfb0

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

Demos/src/Coverage.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525

2626
struct Arguments
2727
{
28-
bool help;
28+
bool help=false;
2929
osmscout::GeoCoord coordinate;
3030
std::list<std::string> mapPaths;
3131
};

DumpData/src/DumpData.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ struct Arguments
6767
std::set<osmscout::OSMId> routeNodeCoordIds;
6868
std::set<osmscout::Id> routeNodeIds;
6969
std::list<Job> jobs;
70-
bool help;
70+
bool help=false;
7171
};
7272

7373
static const size_t INDENT=2;

Tests/src/CmdLineParsingTest.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
class Arguments
88
{
99
private:
10-
bool help;
10+
bool help=false;
1111
bool magicFlag;
1212
bool witchyFlag;
1313
size_t distance;

0 commit comments

Comments
 (0)