Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Plasma
Discover
Commits
8857d4fc
Commit
8857d4fc
authored
Mar 17, 2019
by
Aleix Pol Gonzalez
🐧
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix warning, don't catch object we don't need
parent
400b0d7e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
libdiscover/backends/KNSBackend/KNSBackend.cpp
libdiscover/backends/KNSBackend/KNSBackend.cpp
+2
-2
No files found.
libdiscover/backends/KNSBackend/KNSBackend.cpp
View file @
8857d4fc
...
...
@@ -220,9 +220,9 @@ KNSResource* KNSBackend::resourceForEntry(const KNSCore::EntryInternal& entry)
void
KNSBackend
::
receivedEntries
(
const
KNSCore
::
EntryInternal
::
List
&
entries
)
{
m_responsePending
=
false
;
const
auto
filtered
=
kFilter
<
KNSCore
::
EntryInternal
::
List
>
(
entries
,
[
this
](
const
KNSCore
::
EntryInternal
&
entry
){
return
entry
.
isValid
();
});
const
auto
filtered
=
kFilter
<
KNSCore
::
EntryInternal
::
List
>
(
entries
,
[](
const
KNSCore
::
EntryInternal
&
entry
){
return
entry
.
isValid
();
});
const
auto
resources
=
kTransform
<
QVector
<
AbstractResource
*>>
(
filtered
,
[
this
](
const
KNSCore
::
EntryInternal
&
entry
){
return
resourceForEntry
(
entry
);
});
if
(
!
resources
.
isEmpty
())
{
Q_EMIT
receivedResources
(
resources
);
}
else
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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