Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
PIM
Akonadi Calendar Tools
Commits
7e11fb92
Commit
7e11fb92
authored
May 13, 2021
by
Laurent Montel
😁
Browse files
Fix clazy warning
parent
4a14d4d3
Pipeline
#61722
passed with stage
in 5 minutes and 36 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
calendarjanitor/collectionloader.cpp
View file @
7e11fb92
...
...
@@ -45,7 +45,7 @@ void CollectionLoader::onCollectionsLoaded(KJob *job)
for
(
const
Akonadi
::
Collection
&
collection
:
collections
)
{
const
QStringList
contentMimeTypesLst
=
collection
.
contentMimeTypes
();
QSet
<
QString
>
collectionMimeTypeSet
=
QSet
<
QString
>
(
contentMimeTypesLst
.
begin
(),
contentMimeTypesLst
.
end
());
if
(
!
mimeTypeSet
.
intersect
(
collectionMimeTypeSet
)
.
isEmpty
()
)
{
if
(
mimeTypeSet
.
intersect
s
(
collectionMimeTypeSet
))
{
m_collections
<<
collection
;
}
}
...
...
konsolekalendar/konsolekalendar.cpp
View file @
7e11fb92
...
...
@@ -89,7 +89,7 @@ bool KonsoleKalendar::printCalendarList()
const
QStringList
contentMimeTypes
=
collection
.
contentMimeTypes
();
auto
collectionMimeTypeSet
=
QSet
<
QString
>
(
contentMimeTypes
.
begin
(),
contentMimeTypes
.
end
());
if
(
!
mimeTypeSet
.
intersect
(
collectionMimeTypeSet
)
.
isEmpty
()
)
{
if
(
mimeTypeSet
.
intersect
s
(
collectionMimeTypeSet
))
{
QString
colId
=
QString
::
number
(
collection
.
id
()).
leftJustified
(
6
,
QLatin1Char
(
' '
));
colId
+=
QLatin1String
(
"- "
);
...
...
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