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
OpenFlipper-Free
OpenFlipper
Commits
54b64a52
Commit
54b64a52
authored
Feb 26, 2019
by
Jan Möbius
Browse files
Return a list of ; separated strings for the updateTpye to string conversion
parent
3b2f9768
Changes
1
Hide whitespace changes
Inline
Side-by-side
common/UpdateType.cc
View file @
54b64a52
...
...
@@ -274,7 +274,24 @@ QString updateTypeName(UpdateType _id) {
#ifdef DEBUG
std
::
cerr
<<
"Unable to retrieve updateTypeName"
<<
std
::
endl
;
#endif
return
"Unknown"
;
QString
type
=
""
;
for
(
size_t
i
=
0
;
i
<
updateTypeCount
();
++
i
)
{
if
(
_id
.
contains
(
UpdateType
(
UpdateTypeSet
(
1
)
<<
i
))
)
{
std
::
map
<
UpdateType
,
QString
>::
iterator
partName
=
updateTypeToString
.
find
(
UpdateType
(
UpdateTypeSet
(
1
)
<<
i
));
if
(
partName
!=
updateTypeToString
.
end
()
)
{
type
+=
partName
->
second
+
";"
;
}
else
{
type
+=
"Unknown;"
;
}
}
}
// Remove the last ;
type
.
left
(
type
.
length
()
-
1
);
return
type
;
}
}
...
...
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