logic: Added migration for C/C++ standard to ProjectSettings
* extended SettingsMigrator to support lambdas * added PROJECT_STATE_NEEDS_MIGRATION and dialog for loading old project files
This commit is contained in:
@@ -6,8 +6,8 @@
|
||||
#include "utility/utilityString.h"
|
||||
|
||||
Settings::Settings(const Settings& other)
|
||||
: m_filePath(other.m_filePath)
|
||||
, m_config(other.m_config->createCopy())
|
||||
: m_config(other.m_config->createCopy())
|
||||
, m_filePath(other.m_filePath)
|
||||
{
|
||||
}
|
||||
|
||||
@@ -83,23 +83,6 @@ void Settings::setVersion(size_t version)
|
||||
setValue<int>("version", version);
|
||||
}
|
||||
|
||||
Settings Settings::createFromText(const std::shared_ptr<TextAccess> textAccess)
|
||||
{
|
||||
Settings settings;
|
||||
settings.m_config = ConfigManager::createAndLoad(textAccess);
|
||||
return settings;
|
||||
}
|
||||
|
||||
std::string Settings::getAsText() const
|
||||
{
|
||||
if (m_config)
|
||||
{
|
||||
return m_config->toString();
|
||||
}
|
||||
|
||||
return "";
|
||||
}
|
||||
|
||||
Settings::Settings()
|
||||
{
|
||||
clear();
|
||||
|
||||
Reference in New Issue
Block a user