Skip to content

Commit

Permalink
Allow assigning to default-initialized style::icon-s.
Browse files Browse the repository at this point in the history
  • Loading branch information
john-preston committed Sep 3, 2021
1 parent aaa64e6 commit b1c2065
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions codegen/style/generator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -323,9 +323,7 @@ QString Generator::valueAssignmentCode(structure::Value value) const {
} break;
case Tag::Icon: {
auto v(value.Icon());
if (v.parts.empty()) return QString("{}");

QStringList parts;
QStringList parts = { "std::in_place" };
for (const auto &part : v.parts) {
auto maskIndex = iconMasks_.value(part.filename, -1);
if (maskIndex < 0) {
Expand Down

0 comments on commit b1c2065

Please sign in to comment.