aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMontel Laurent <[email protected]>2017-08-31 07:15:00 +0200
committerMontel Laurent <[email protected]>2017-08-31 07:15:22 +0200
commit24b3bc7ebd80dac16d97e71a23beda5526cd8822 (patch)
treed3897fda327b3e2fa1d08288520a366bbfd9a67a
parente8e4daaa553fce82b3d8c96367c61b40234dc77a (diff)
Initialize variables
-rw-r--r--src/holidayregion.cpp2
-rw-r--r--src/parsers/plan2/holidayparserdriverplan_p.h10
2 files changed, 6 insertions, 6 deletions
diff --git a/src/holidayregion.cpp b/src/holidayregion.cpp
index 87737b5..14169c4 100644
--- a/src/holidayregion.cpp
+++ b/src/holidayregion.cpp
@@ -100,7 +100,7 @@ public:
}
}
- HolidayParserDriver *mDriver; // The parser driver for the holiday file
+ HolidayParserDriver *mDriver = nullptr; // The parser driver for the holiday file
QString mRegionCode; // region code of holiday region
QFileInfo mHolidayFile; // file containing holiday data, or null
};
diff --git a/src/parsers/plan2/holidayparserdriverplan_p.h b/src/parsers/plan2/holidayparserdriverplan_p.h
index c7c394d..0af4265 100644
--- a/src/parsers/plan2/holidayparserdriverplan_p.h
+++ b/src/parsers/plan2/holidayparserdriverplan_p.h
@@ -157,13 +157,13 @@ private:
QStringList m_fileCalendarTypes; // List of all Calendar Types used in file
QString m_parseCalendarType; // Calendar Type being parsed
- bool m_traceParsing; // Bison C++ skeleton enable tracing in Bison parser class
- HolidayParserPlan *m_parser; // Bison C++ skeleton Bison parser class implementation
+ bool m_traceParsing = false; // Bison C++ skeleton enable tracing in Bison parser class
+ HolidayParserPlan *m_parser = nullptr; // Bison C++ skeleton Bison parser class implementation
bool m_traceScanning; // Flex C++ enable tracing in Flex scanner class
- HolidayScannerPlan *m_scanner; // Flex C++ scanner class implementation
+ HolidayScannerPlan *m_scanner = nullptr; // Flex C++ scanner class implementation
- bool m_parseMetadataOnly; // Only parse file for metadata
+ bool m_parseMetadataOnly = false; // Only parse file for metadata
QDate m_parseYearStart; // First day of year being parsed
QDate m_parseYearEaster; // Easter in the parse year, Gregorian only
QDate m_parseYearPascha; // Orthodox Easter in the parse year, Gregorian only
@@ -175,7 +175,7 @@ private:
int m_eventMonth; // Event date fields
int m_eventDay; // Event date fields
- std::string *m_fileToParse;
+ std::string *m_fileToParse = nullptr;
};
}