fix: designated initializers cannot be used with a non-aggregate type

This commit is contained in:
彭逸豪 2023-06-15 02:06:02 +00:00 committed by iaom
parent b0ac58b952
commit ac1d5ce056
1 changed files with 6 additions and 6 deletions

View File

@ -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::DescriptionInfo {
SearchPluginIface::ResultInfo ri(
XdgIcon::fromTheme("kylin-notebook", QIcon(":/res/icons/desktop.png")),
str.at(1),
QVector<SearchPluginIface::DescriptionInfo>() << 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;