[graphics/drawy] src: Reduce duplicate code

Laurent Montel <[email protected]>
Newsgroups gmane.comp.kde.cvs
Message-ID <[email protected]>
Git commit 59e872961789cc081370bd8c8eb62cda35e8367a by Laurent Montel.
Committed on 09/08/2026 at 10:58.
Pushed by mlaurent into branch 'master'.

Reduce duplicate code

M  +3    -3    src/apps/main.cpp
M  +0    -3    src/widgets/context/aboutdata.cpp

https://invent.kde.org/graphics/drawy/-/commit/59e872961789cc081370bd8c8eb62cda35e8367a

diff --git a/src/apps/main.cpp b/src/apps/main.cpp
index 3f368122..87795044 100644
--- a/src/apps/main.cpp
+++ b/src/apps/main.cpp
@@ -43,12 +43,12 @@ int main(int argc, char *argv[])
     aboutData.setCopyrightStatement(i18nc("Copyright text, keep the © symbol and the en dash for the year range", "© 2025–%1 Drawy authors", u"2026"_s));
     aboutData.setVersion(DRAWY_VERSION);
     aboutData.setComponentName(u"drawy"_s);
-    aboutData.addAuthor(i18nc("@info:credit", "Prayag Jain"), i18n("Maintainer"), u"[email protected]"_s);
-    aboutData.addAuthor(i18nc("@info:credit", "Laurent Montel"), i18n("Developer"), u"[email protected]"_s);
-    aboutData.addAuthor(i18nc("@info:credit", "Abdelhadi Wael"), i18n("GSoc 2026 developper (Improve text component)"), u"[email protected]"_s);
 #else
     KAboutData aboutData = AboutData();
 #endif
+    aboutData.addAuthor(i18nc("@info:credit", "Prayag Jain"), i18n("Maintainer"), u"[email protected]"_s);
+    aboutData.addAuthor(i18nc("@info:credit", "Laurent Montel"), i18n("Developer"), u"[email protected]"_s);
+    aboutData.addAuthor(i18nc("@info:credit", "Abdelhadi Wael"), i18n("GSoc 2026 developper (Improve text component)"), u"[email protected]"_s);
 
     KCrash::initialize();
 
diff --git a/src/widgets/context/aboutdata.cpp b/src/widgets/context/aboutdata.cpp
index b482485a..3951cdfc 100644
--- a/src/widgets/context/aboutdata.cpp
+++ b/src/widgets/context/aboutdata.cpp
@@ -16,9 +16,6 @@ AboutData::AboutData()
                  KAboutLicense::GPL_V3,
                  i18nc("Copyright text, keep the © symbol and the en dash for the year range", "© 2025–%1 Drawy authors", u"2026"_s))
 {
-    addAuthor(i18nc("@info:credit", "Prayag Jain"), i18n("Maintainer"), u"[email protected]"_s);
-    addAuthor(i18nc("@info:credit", "Laurent Montel"), i18n("Developer"), u"[email protected]"_s);
-    addAuthor(i18nc("@info:credit", "Abdelhadi Wael"), i18n("GSoc 2026 developper (Improve text component)"), u"[email protected]"_s);
     setProductName("drawy"_ba);
     setOrganizationDomain("kde.org"_ba);
 }
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.