From 0c2ef7bee24d569075434e436ae8a50d66947979 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BD=AD=E9=80=B8=E8=B1=AA?= Date: Thu, 15 Jun 2023 02:06:02 +0000 Subject: [PATCH] fix: designated initializers cannot be used with a non-aggregate type --- libsearch/notesearch/note-search-plugin.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/libsearch/notesearch/note-search-plugin.cpp b/libsearch/notesearch/note-search-plugin.cpp index e17ff49..3cf0f5e 100644 --- a/libsearch/notesearch/note-search-plugin.cpp +++ b/libsearch/notesearch/note-search-plugin.cpp @@ -232,15 +232,15 @@ void NoteSearch::run() { } dbusArgs.endArray(); qDebug() << str; - SearchPluginIface::ResultInfo ri = { - icon : XdgIcon::fromTheme("kylin-notebook", QIcon(":/res/icons/desktop.png")), - name : str.at(1), - description : QVector() << SearchPluginIface::DescriptionInfo { + SearchPluginIface::ResultInfo ri( + XdgIcon::fromTheme("kylin-notebook", QIcon(":/res/icons/desktop.png")), + str.at(1), + QVector() << SearchPluginIface::DescriptionInfo { key : QString(tr("Note Description:")), value : str.at(0) }, - actionKey : it.first - }; + it.first + ); if (m_uniqueSymbol ^ g_uniqueSymbol) { qDebug() << m_uniqueSymbol << g_uniqueSymbol; return;