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:
@@ -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)
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user