logic: fix initialization of source groups

SourceGroups have been initialized with wrong default values which
have later been used to write for writing the ProjectSettings file
if not overwritten.
This commit is contained in:
malte_langkabel
2017-04-26 11:24:13 +02:00
parent 0468168d61
commit bf094b52da
3 changed files with 14 additions and 0 deletions
+4
View File
@@ -6,6 +6,10 @@ SourceGroupSettings::SourceGroupSettings(const std::string& id, SourceGroupType
: m_projectSettings(projectSettings)
, m_id(id)
, m_type(type)
, m_standard("")
, m_sourcePaths(std::vector<FilePath>())
, m_excludePaths(std::vector<FilePath>())
, m_sourceExtensions(std::vector<std::string>())
{
}
@@ -4,6 +4,12 @@
SourceGroupSettingsCxx::SourceGroupSettingsCxx(const std::string& id, SourceGroupType type, const ProjectSettings* projectSettings)
: SourceGroupSettings(id, type, projectSettings)
, m_headerSearchPaths(std::vector<FilePath>())
, m_frameworkSearchPaths(std::vector<FilePath>())
, m_compilerFlags(std::vector<std::string>())
, m_useSourcePathsForHeaderSearch(false)
, m_hasDefinedUseSourcePathsForHeaderSearch(false)
, m_compilationDatabasePath(FilePath())
{
}
@@ -4,6 +4,10 @@
SourceGroupSettingsJava::SourceGroupSettingsJava(const std::string& id, SourceGroupType type, const ProjectSettings* projectSettings)
: SourceGroupSettings(id, type, projectSettings)
, m_classpaths(std::vector<FilePath>())
, m_mavenProjectFilePath(FilePath())
, m_mavenDependenciesDirectory(FilePath())
, m_shouldIndexMavenTests(false)
{
}