Skip to content

Commit

Permalink
settings
Browse files Browse the repository at this point in the history
  • Loading branch information
dxli committed Sep 11, 2023
1 parent 2fb58a0 commit 979c9ee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lcUI/managers/uisettings.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ void UiSettings::readSettings(widgets::CustomizeToolbar* customizeToolbar, bool
}

bool UiSettings::validateSettingsDocument(rapidjson::Document& inputDocument) {
std::unique_ptr<std::ifstream> schemaFile=std::make_unique<std::ifstream>(_filePaths["settings_load"] + schemaFileName);
std::unique_ptr<std::istream> schemaFile=std::make_unique<std::ifstream>(_filePaths["settings_load"] + schemaFileName);
if (schemaFile->fail())
schemaFile = std::make_unique<std::istringstream>(settingSchema);

Expand Down

0 comments on commit 979c9ee

Please sign in to comment.