Commit b4f2bd47 authored by David Jarvie's avatar David Jarvie

Replace nullptr which aren't pointers

parent 07cdf05b
......@@ -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;
......
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment