From e06db63d61540e07197eef1930f8b0893caf3eec Mon Sep 17 00:00:00 2001 From: Rasmus Karlsson Date: Thu, 18 Jan 2024 21:56:50 +0100 Subject: [PATCH] use named initializers --- src/providers/chatterino/ChatterinoBadges.cpp | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/src/providers/chatterino/ChatterinoBadges.cpp b/src/providers/chatterino/ChatterinoBadges.cpp index 1c9a9de05..cb5e7e472 100644 --- a/src/providers/chatterino/ChatterinoBadges.cpp +++ b/src/providers/chatterino/ChatterinoBadges.cpp @@ -45,11 +45,14 @@ void ChatterinoBadges::loadChatterinoBadges() { auto jsonBadge = jsonBadgeValue.toObject(); auto emote = Emote{ - EmoteName{}, - ImageSet{Url{jsonBadge.value("image1").toString()}, - Url{jsonBadge.value("image2").toString()}, - Url{jsonBadge.value("image3").toString()}}, - Tooltip{jsonBadge.value("tooltip").toString()}, Url{}}; + .name = EmoteName{}, + .images = + ImageSet{Url{jsonBadge.value("image1").toString()}, + Url{jsonBadge.value("image2").toString()}, + Url{jsonBadge.value("image3").toString()}}, + .tooltip = Tooltip{jsonBadge.value("tooltip").toString()}, + .homePage = Url{}, + }; emotes.push_back( std::make_shared(std::move(emote)));