Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Plasma
Discover
Commits
be1ca46c
Commit
be1ca46c
authored
Oct 06, 2020
by
Aleix Pol Gonzalez
🐧
Browse files
flatpak: properly pass QString
parent
d8b92bba
Changes
1
Hide whitespace changes
Inline
Side-by-side
libdiscover/backends/FlatpakBackend/FlatpakBackend.cpp
View file @
be1ca46c
...
...
@@ -1221,7 +1221,7 @@ ResultsStream * FlatpakBackend::findResourceByPackageName(const QUrl &url)
else
{
auto
stream
=
new
ResultsStream
(
QStringLiteral
(
"FlatpakStream"
));
auto
f
=
[
this
,
stream
,
appstreamIds
]
()
{
const
auto
resources
=
kAppend
<
QVector
<
AbstractResource
*>>
(
appstreamIds
,
[
this
]
(
const
QString
appstreamId
)
{
return
resourcesByAppstreamName
(
appstreamId
);
});
const
auto
resources
=
kAppend
<
QVector
<
AbstractResource
*>>
(
appstreamIds
,
[
this
]
(
const
QString
&
appstreamId
)
{
return
resourcesByAppstreamName
(
appstreamId
);
});
if
(
!
resources
.
isEmpty
())
Q_EMIT
stream
->
resourcesFound
(
resources
);
stream
->
finish
();
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment