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
KAlarm
Commits
aea9f864
Commit
aea9f864
authored
Apr 09, 2020
by
Laurent Montel
😁
Browse files
Fix clazy warning
parent
67cbcfed
Changes
3
Hide whitespace changes
Inline
Side-by-side
src/compatibilityattribute.cpp
View file @
aea9f864
...
...
@@ -31,7 +31,7 @@ class Q_DECL_HIDDEN CompatibilityAttribute::Private
{
public:
Private
()
{}
bool
operator
==
(
const
Private
&
other
)
const
bool
operator
==
(
KAlarmCal
::
CompatibilityAttribute
::
Private
other
)
const
{
return
mCompatibility
==
other
.
mCompatibility
&&
mVersion
==
other
.
mVersion
;
...
...
src/kadatetime.cpp
View file @
aea9f864
...
...
@@ -1811,13 +1811,9 @@ QString KADateTime::toString(TimeFormat format) const
result
+=
QLatin1Char
(
'-'
);
year
=
-
year
;
}
result
+=
QStringLiteral
(
"%1-%2-%3"
).
arg
(
numString
(
year
,
4
))
.
arg
(
numString
(
d
->
date
().
month
(),
2
))
.
arg
(
numString
(
d
->
date
().
day
(),
2
));
result
+=
QStringLiteral
(
"%1-%2-%3"
).
arg
(
numString
(
year
,
4
),
numString
(
d
->
date
().
month
(),
2
),
numString
(
d
->
date
().
day
(),
2
));
if
(
!
d
->
dateOnly
()
||
d
->
specType
!=
LocalZone
)
{
result
+=
QStringLiteral
(
"T%1:%2:%3"
).
arg
(
numString
(
d
->
time
().
hour
(),
2
))
.
arg
(
numString
(
d
->
time
().
minute
(),
2
))
.
arg
(
numString
(
d
->
time
().
second
(),
2
));
result
+=
QStringLiteral
(
"T%1:%2:%3"
).
arg
(
numString
(
d
->
time
().
hour
(),
2
),
numString
(
d
->
time
().
minute
(),
2
),
numString
(
d
->
time
().
second
(),
2
));
if
(
d
->
time
().
msec
())
{
// Comma is preferred by ISO8601 as the decimal point symbol,
// so use it unless '.' is the symbol used in this locale.
...
...
src/kaevent.cpp
View file @
aea9f864
...
...
@@ -3857,7 +3857,7 @@ void KAEventPrivate::dumpDebug() const
qCDebug
(
KALARMCAL_LOG
)
<<
"-- mLogFile:"
<<
mLogFile
;
}
else
if
(
mActionSubType
==
KAEvent
::
EMAIL
)
{
qCDebug
(
KALARMCAL_LOG
)
<<
"-- mEmail: FromKMail:"
<<
mEmailFromIdentity
;
qCDebug
(
KALARMCAL_LOG
)
<<
"-- Addresses:"
<<
mEmailAddresses
.
join
(
Q
Latin1
String
(
","
));
qCDebug
(
KALARMCAL_LOG
)
<<
"-- Addresses:"
<<
mEmailAddresses
.
join
(
QString
Literal
(
","
));
qCDebug
(
KALARMCAL_LOG
)
<<
"-- Subject:"
<<
mEmailSubject
;
qCDebug
(
KALARMCAL_LOG
)
<<
"-- Attachments:"
<<
mEmailAttachments
.
join
(
QLatin1Char
(
','
));
qCDebug
(
KALARMCAL_LOG
)
<<
"-- Bcc:"
<<
mEmailBcc
;
...
...
@@ -4014,7 +4014,7 @@ void KAEventPrivate::readAlarms(const Event::Ptr &event, AlarmMap *alarmMap, boo
}
}
for
(
Alarm
::
Ptr
alarm
:
alarms
)
{
for
(
const
Alarm
::
Ptr
&
alarm
:
alarms
)
{
// Parse the next alarm's text
AlarmData
data
;
readAlarm
(
alarm
,
data
,
audioOnly
,
cmdDisplay
);
...
...
@@ -5287,7 +5287,7 @@ bool KAEvent::convertKCalEvents(const Calendar::Ptr &calendar, int calendarVersi
int
i
;
while
((
i
=
cats
.
indexOf
(
TEMPL_DEF_TIME_CAT
))
>=
0
)
{
cats
.
removeAt
(
i
);
(
flags
+=
KAEventPrivate
::
TEMPL_AFTER_TIME_FLAG
)
+=
Q
Latin1
String
(
"0"
);
(
flags
+=
KAEventPrivate
::
TEMPL_AFTER_TIME_FLAG
)
+=
QString
Literal
(
"0"
);
}
}
...
...
@@ -5354,7 +5354,7 @@ bool KAEvent::convertKCalEvents(const Calendar::Ptr &calendar, int calendarVersi
}
if
(
addLateCancel
)
{
(
flags
+=
KAEventPrivate
::
LATE_CANCEL_FLAG
)
+=
Q
Latin1
String
(
"1"
);
(
flags
+=
KAEventPrivate
::
LATE_CANCEL_FLAG
)
+=
QString
Literal
(
"1"
);
}
if
(
!
flags
.
isEmpty
())
{
event
->
setCustomProperty
(
KACalendar
::
APPNAME
,
KAEventPrivate
::
FLAGS_PROPERTY
,
flags
.
join
(
KAEventPrivate
::
SC
));
...
...
@@ -5469,7 +5469,7 @@ bool KAEvent::convertKCalEvents(const Calendar::Ptr &calendar, int calendarVersi
* It's a KAlarm pre-1.5.0 or KAlarm 1.9 series pre-1.9.9 calendar file.
* Convert email identity names to uoids.
*/
for
(
Alarm
::
Ptr
alarm
:
alarms
)
{
for
(
const
Alarm
::
Ptr
&
alarm
:
alarms
)
{
const
QString
name
=
alarm
->
customProperty
(
KACalendar
::
APPNAME
,
KMAIL_ID_PROPERTY
);
if
(
name
.
isEmpty
())
{
continue
;
...
...
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