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
PIM
KAlarm
Commits
64b87412
Commit
64b87412
authored
Apr 05, 2017
by
Laurent Montel
Browse files
Minor optimization
parent
9cd2aa49
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/kacalendar.cpp
View file @
64b87412
...
...
@@ -418,14 +418,12 @@ Type type(const QString &mimeType)
Types
types
(
const
QStringList
&
mimeTypes
)
{
Types
types
=
nullptr
;
for
each
(
const
QString
&
type
,
mimeTypes
)
{
for
(
const
QString
&
type
:
mimeTypes
)
{
if
(
type
==
MIME_ACTIVE
)
{
types
|=
ACTIVE
;
}
if
(
type
==
MIME_ARCHIVED
)
{
}
else
if
(
type
==
MIME_ARCHIVED
)
{
types
|=
ARCHIVED
;
}
if
(
type
==
MIME_TEMPLATE
)
{
}
else
if
(
type
==
MIME_TEMPLATE
)
{
types
|=
TEMPLATE
;
}
}
...
...
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