Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Discover
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
2
Merge Requests
2
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Plasma
Discover
Commits
4a447f4e
Commit
4a447f4e
authored
Sep 14, 2017
by
Aleix Pol Gonzalez
🐧
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Properly traverse a hash with iterators
Skips construction of ::keys() Skips look-up of matches
parent
c1fd2638
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
libdiscover/backends/FlatpakBackend/FlatpakBackend.cpp
libdiscover/backends/FlatpakBackend/FlatpakBackend.cpp
+3
-3
No files found.
libdiscover/backends/FlatpakBackend/FlatpakBackend.cpp
View file @
4a447f4e
...
...
@@ -228,9 +228,9 @@ FlatpakResource * FlatpakBackend::getRuntimeForApp(FlatpakResource *resource) co
const
QString
runtimeId
=
QStringLiteral
(
"runtime/"
)
+
runtimeInfo
.
at
(
0
)
+
QLatin1Char
(
'/'
)
+
runtimeInfo
.
at
(
2
);
for
each
(
const
QString
&
id
,
m_resources
.
keys
()
)
{
if
(
i
d
.
endsWith
(
runtimeId
))
{
runtime
=
m_resources
.
value
(
id
)
;
for
(
auto
it
=
m_resources
.
constBegin
(),
itEnd
=
m_resources
.
constEnd
();
it
!=
itEnd
;
++
it
)
{
if
(
i
t
.
key
()
.
endsWith
(
runtimeId
))
{
runtime
=
*
it
;
break
;
}
}
...
...
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