Clang compile fix

This commit is contained in:
Alexander Bock
2023-01-26 20:58:55 +01:00
parent ac7bf6f8f7
commit a49bf5d3ce
2 changed files with 9 additions and 2 deletions
@@ -156,7 +156,10 @@ void AssetTreeModel::importModelData(const std::string& assetBasePath,
std::string assetList = assets.useQtFileSystemModelToTraverseDir(assetBasePath);
assetList += assets.useQtFileSystemModelToTraverseDir(userAssetBasePath, true);
std::istringstream iss(assetList);
ImportElement rootElem = ImportElement("", 0, false);
ImportElement rootElem = {
.line = "",
.level = 0,
};
if (importGetNextLine(rootElem, iss)) {
importInsertItem(iss, _rootItem.get(), rootElem, 0);
@@ -37,7 +37,11 @@
using namespace openspace;
namespace {
const Profile::Module Blank = Profile::Module("", std::nullopt, std::nullopt);
const Profile::Module Blank = {
.name = "",
.loadedInstruction = std::nullopt,
.notLoadedInstruction = std::nullopt
};
} // namespace
ModulesDialog::ModulesDialog(QWidget* parent,