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
b4f2bd47
Commit
b4f2bd47
authored
Dec 03, 2018
by
David Jarvie
Browse files
Replace nullptr which aren't pointers
parent
07cdf05b
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/kacalendar.cpp
View file @
b4f2bd47
...
...
@@ -415,7 +415,7 @@ Type type(const QString &mimeType)
Types
types
(
const
QStringList
&
mimeTypes
)
{
Types
types
=
nullptr
;
Types
types
=
0
;
for
(
const
QString
&
type
:
mimeTypes
)
{
if
(
type
==
MIME_ACTIVE
)
{
types
|=
ACTIVE
;
...
...
src/kaevent.cpp
View file @
b4f2bd47
...
...
@@ -865,7 +865,7 @@ void KAEventPrivate::set(const Event::Ptr &event)
mRepeatAtLogin
=
false
;
mDisplaying
=
false
;
mCommandScript
=
false
;
mExtraActionOptions
=
nullptr
;
mExtraActionOptions
=
0
;
mDeferral
=
NO_DEFERRAL
;
mSoundVolume
=
-
1
;
mFadeVolume
=
-
1
;
...
...
@@ -1186,7 +1186,7 @@ void KAEventPrivate::set(const KADateTime &dateTime, const QString &text, const
mDisplayingEdit
=
false
;
mArchive
=
false
;
mReminderAfterTime
=
DateTime
();
mExtraActionOptions
=
nullptr
;
mExtraActionOptions
=
0
;
mCompatibility
=
KACalendar
::
Current
;
mReadOnly
=
false
;
mCommandError
=
KAEvent
::
CMD_NO_ERROR
;
...
...
@@ -1689,7 +1689,7 @@ KAEvent::Flags KAEvent::flags() const
KAEvent
::
Flags
KAEventPrivate
::
flags
()
const
{
KAEvent
::
Flags
result
(
nullptr
);
KAEvent
::
Flags
result
(
0
);
if
(
mBeep
)
{
result
|=
KAEvent
::
BEEP
;
}
...
...
@@ -3983,7 +3983,7 @@ void KAEventPrivate::readAlarm(const Alarm::Ptr &alarm, AlarmData &data, bool au
}
data
.
cleanText
+=
alarm
->
programArguments
();
}
data
.
extraActionOptions
=
nullptr
;
data
.
extraActionOptions
=
0
;
if
(
flags
.
contains
(
KAEventPrivate
::
EXEC_ON_DEFERRAL_FLAG
))
{
data
.
extraActionOptions
|=
KAEvent
::
ExecPreActOnDeferral
;
}
...
...
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