mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-01-06 11:39:49 -06:00
Introduction of new Dictionary class (#1446)
* Adapting to introduction of new Dictionary class in Ghoul * Mainly replacing usage of float instead of doubles as expected * Adjust to the lack of the hasKeyAndValue function
This commit is contained in:
@@ -83,13 +83,13 @@ TimeFrameUnion::TimeFrameUnion(const ghoul::Dictionary& dictionary)
|
||||
ghoul::Dictionary frames =
|
||||
dictionary.value<ghoul::Dictionary>(TimeFramesInfo.identifier);
|
||||
|
||||
for (const std::string& k : frames.keys()) {
|
||||
for (std::string_view k : frames.keys()) {
|
||||
const ghoul::Dictionary& subDictionary = frames.value<ghoul::Dictionary>(k);
|
||||
_timeFrames.push_back(TimeFrame::createFromDictionary(subDictionary));
|
||||
TimeFrame& subFrame = *_timeFrames.back();
|
||||
subFrame.setIdentifier(k);
|
||||
subFrame.setGuiName(k);
|
||||
subFrame.setDescription(k);
|
||||
subFrame.setIdentifier(std::string(k));
|
||||
subFrame.setGuiName(std::string(k));
|
||||
subFrame.setDescription(std::string(k));
|
||||
addPropertySubOwner(*_timeFrames.back());
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user