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
P
Plasma Add-ons
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
5
Issues
5
List
Boards
Labels
Service Desk
Milestones
Merge Requests
5
Merge Requests
5
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
Plasma Add-ons
Commits
c943d72a
Commit
c943d72a
authored
Jan 30, 2018
by
Friedrich W. H. Kossebau
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[comic applet] Don't compare iterators from different return values
parent
36f5e02e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
applets/comic/activecomicmodel.cpp
applets/comic/activecomicmodel.cpp
+4
-3
No files found.
applets/comic/activecomicmodel.cpp
View file @
c943d72a
...
...
@@ -54,9 +54,10 @@ QVariantHash ActiveComicModel::get(int row) const
QModelIndex
idx
=
index
(
row
,
0
);
QVariantHash
hash
;
QHash
<
int
,
QByteArray
>::
const_iterator
i
;
for
(
i
=
roleNames
().
constBegin
();
i
!=
roleNames
().
constEnd
();
++
i
)
{
hash
[
i
.
value
()]
=
data
(
idx
,
i
.
key
());
const
auto
roleNames
=
this
->
roleNames
();
hash
.
reserve
(
roleNames
.
size
());
for
(
auto
end
=
roleNames
.
constEnd
(),
it
=
roleNames
.
constBegin
();
it
!=
end
;
++
it
)
{
hash
.
insert
(
it
.
value
(),
data
(
idx
,
it
.
key
()));
}
return
hash
;
...
...
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