Commit f66a57f5 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Use Q_NULLPTR/Q_DECL_OVERRIDE

parent 98b87f9f
......@@ -28,7 +28,7 @@
using namespace KOrg;
AboutData::AboutData()
: K4AboutData("korganizer", 0, ki18n("KOrganizer"), korgVersion,
: K4AboutData("korganizer", Q_NULLPTR, ki18n("KOrganizer"), korgVersion,
ki18n("A Personal Organizer"),
K4AboutData::License_GPL,
ki18n("Copyright © 1997–1999 Preston Brown\n"
......
......@@ -94,15 +94,15 @@
#include <KLocale>
#include <QStandardPaths>
KOWindowList *ActionManager::mWindowList = 0;
KOWindowList *ActionManager::mWindowList = Q_NULLPTR;
ActionManager::ActionManager(KXMLGUIClient *client, CalendarView *widget,
QObject *parent, KOrg::MainWindow *mainWindow,
bool isPart, QMenuBar *menuBar)
: QObject(parent),
mCollectionViewShowAction(0),
mCollectionView(0), mCollectionViewStateSaver(0),
mCollectionSelectionModelStateSaver(0)
mCollectionViewShowAction(Q_NULLPTR),
mCollectionView(Q_NULLPTR), mCollectionViewStateSaver(Q_NULLPTR),
mCollectionSelectionModelStateSaver(Q_NULLPTR)
{
new KOrgCalendarAdaptor(this);
QDBusConnection::sessionBus().registerObject(QLatin1String("/Calendar"), this);
......@@ -111,7 +111,7 @@ ActionManager::ActionManager(KXMLGUIClient *client, CalendarView *widget,
mACollection = mGUIClient->actionCollection();
mCalendarView = widget;
mIsPart = isPart;
mTempFile = 0;
mTempFile = Q_NULLPTR;
mHtmlExportSync = false;
mMainWindow = mainWindow;
mMenuBar = menuBar;
......@@ -857,7 +857,7 @@ void ActionManager::file_open(const QUrl &url)
// is that URL already opened somewhere else? Activate that window
KOrg::MainWindow *korg = ActionManager::findInstance(url);
if ((0 != korg) && (korg != mMainWindow)) {
if ((Q_NULLPTR != korg) && (korg != mMainWindow)) {
#if KDEPIM_HAVE_X11
KWindowSystem::activateWindow(korg->topLevelWidget()->winId());
#endif
......@@ -1112,7 +1112,7 @@ bool ActionManager::saveAsURL(const QUrl &url)
QString fileOrig = mFile;
QUrl URLOrig = mURL;
QTemporaryFile *tempFile = 0;
QTemporaryFile *tempFile = Q_NULLPTR;
if (url.isLocalFile()) {
mFile = url.toLocalFile();
} else {
......@@ -1280,7 +1280,7 @@ KOrg::MainWindow *ActionManager::findInstance(const QUrl &url)
return mWindowList->findInstance(url);
}
} else {
return 0;
return Q_NULLPTR;
}
}
......@@ -1459,7 +1459,7 @@ QString ActionManager::localFileName()
class ActionManager::ActionStringsVisitor : public KCalCore::Visitor
{
public:
ActionStringsVisitor() : mShow(0), mEdit(0), mDelete(0) {}
ActionStringsVisitor() : mShow(Q_NULLPTR), mEdit(Q_NULLPTR), mDelete(Q_NULLPTR) {}
bool act(KCalCore::IncidenceBase::Ptr incidence, QAction *show, QAction *edit, QAction *del)
{
......@@ -1470,7 +1470,7 @@ public:
}
protected:
bool visit(KCalCore::Event::Ptr)
bool visit(KCalCore::Event::Ptr) Q_DECL_OVERRIDE
{
if (mShow) {
mShow->setText(i18n("&Show Event"));
......@@ -1484,7 +1484,7 @@ protected:
return true;
}
bool visit(KCalCore::Todo::Ptr)
bool visit(KCalCore::Todo::Ptr) Q_DECL_OVERRIDE
{
if (mShow) {
mShow->setText(i18n("&Show To-do"));
......@@ -1498,12 +1498,12 @@ protected:
return true;
}
bool visit(KCalCore::Journal::Ptr)
bool visit(KCalCore::Journal::Ptr) Q_DECL_OVERRIDE
{
return assignDefaultStrings();
}
bool visit(KCalCore::FreeBusy::Ptr) // to inhibit hidden virtual compile warning
bool visit(KCalCore::FreeBusy::Ptr) Q_DECL_OVERRIDE // to inhibit hidden virtual compile warning
{
return false;
}
......@@ -1678,11 +1678,11 @@ void ActionManager::openEventEditor(const QString &summary,
KMime::Message *msg = new KMime::Message();
msg->setContent(f.readAll());
msg->parse();
if (msg == msg->textContent() || msg->textContent() == 0) { // no attachments
if (msg == msg->textContent() || msg->textContent() == Q_NULLPTR) { // no attachments
attData = file;
} else {
if (KMessageBox::warningContinueCancel(
0,
Q_NULLPTR,
i18n("Removing attachments from an email might invalidate its signature."),
i18n("Remove Attachments"), KStandardGuiItem::cont(), KStandardGuiItem::cancel(),
QLatin1String("BodyOnlyInlineAttachment")) != KMessageBox::Continue) {
......
......@@ -71,7 +71,7 @@ class KORGANIZERPRIVATE_EXPORT ActionManager : public QObject
public:
ActionManager(KXMLGUIClient *client, CalendarView *widget,
QObject *parent, KOrg::MainWindow *mainWindow,
bool isPart, QMenuBar *menuBar = 0);
bool isPart, QMenuBar *menuBar = Q_NULLPTR);
virtual ~ActionManager();
/** Peform initialization that requires this* to be full constructed */
......
......@@ -63,7 +63,7 @@
#include <KConfigGroup>
AkonadiCollectionViewFactory::AkonadiCollectionViewFactory(CalendarView *view)
: mView(view), mAkonadiCollectionView(0)
: mView(view), mAkonadiCollectionView(Q_NULLPTR)
{
}
......@@ -98,7 +98,7 @@ public:
}
void paint(QPainter *painter, const QStyleOptionViewItem &option,
const QModelIndex &index) const
const QModelIndex &index) const Q_DECL_OVERRIDE
{
QStyledItemDelegate::paint(painter, option, index);
QStyleOptionViewItemV4 v4 = option;
......@@ -167,7 +167,7 @@ public:
}
/* reimp */
Qt::ItemFlags flags(const QModelIndex &index) const
Qt::ItemFlags flags(const QModelIndex &index) const Q_DECL_OVERRIDE
{
return Qt::ItemIsSelectable | QSortFilterProxyModel::flags(index);
}
......@@ -199,10 +199,10 @@ AkonadiCollectionView *AkonadiCollectionViewFactory::collectionView() const
AkonadiCollectionView::AkonadiCollectionView(CalendarView *view, bool hasContextMenu,
QWidget *parent)
: CalendarViewExtension(parent),
mActionManager(0),
mCollectionView(0),
mBaseModel(0),
mSelectionProxyModel(0),
mActionManager(Q_NULLPTR),
mCollectionView(Q_NULLPTR),
mBaseModel(Q_NULLPTR),
mSelectionProxyModel(Q_NULLPTR),
mNotSendAddRemoveSignal(false),
mWasDefaultCalendar(false),
mHasContextMenu(hasContextMenu)
......@@ -336,7 +336,7 @@ AkonadiCollectionView::~AkonadiCollectionView()
Akonadi::ETMViewStateSaver treeStateSaver;
KConfigGroup group(KOGlobals::self()->config(), "CollectionTreeView");
treeStateSaver.setView(mCollectionView);
treeStateSaver.setSelectionModel(0); // we only save expand state
treeStateSaver.setSelectionModel(Q_NULLPTR); // we only save expand state
treeStateSaver.saveState(group);
}
......@@ -349,7 +349,7 @@ void AkonadiCollectionView::restoreTreeState()
treeStateRestorer = new Akonadi::ETMViewStateSaver(); // not a leak
KConfigGroup group(KOGlobals::self()->config(), "CollectionTreeView");
treeStateRestorer->setView(mCollectionView);
treeStateRestorer->setSelectionModel(0); // we only restore expand state
treeStateRestorer->setSelectionModel(Q_NULLPTR); // we only restore expand state
treeStateRestorer->restoreState(group);
}
......@@ -631,7 +631,7 @@ Akonadi::EntityTreeModel *AkonadiCollectionView::entityTreeModel() const
}
qCWarning(KORGANIZER_LOG) << "Couldn't find EntityTreeModel";
return 0;
return Q_NULLPTR;
}
void AkonadiCollectionView::checkNewCalendar(const QModelIndex &parent, int begin, int end)
......
......@@ -55,7 +55,7 @@ public:
CalendarView *view() const;
AkonadiCollectionView *collectionView() const;
CalendarViewExtension *create(QWidget *);
CalendarViewExtension *create(QWidget *) Q_DECL_OVERRIDE;
private:
CalendarView *mView;
......
......@@ -106,8 +106,8 @@
#include <KLocale>
CalendarView::CalendarView(QWidget *parent) : CalendarViewBase(parent),
mCheckableProxyModel(0),
mETMCollectionView(0)
mCheckableProxyModel(Q_NULLPTR),
mETMCollectionView(Q_NULLPTR)
{
Akonadi::Control::widgetNeedsAkonadi(this);
mChanger = new Akonadi::IncidenceChanger(new IncidenceEditorNG::IndividualMailComponentFactory(this), this);
......@@ -139,7 +139,7 @@ CalendarView::CalendarView(QWidget *parent) : CalendarViewBase(parent),
mReadOnly = false;
mSplitterSizesValid = false;
mCalPrinter = 0;
mCalPrinter = Q_NULLPTR;
mDateNavigator = new DateNavigator(this);
mDateChecker = new DateChecker(this);
......@@ -317,7 +317,7 @@ CalendarView::CalendarView(QWidget *parent) : CalendarViewBase(parent),
CalendarView::~CalendarView()
{
mCalendar->unregisterObserver(this);
mCalendar->setFilter(0); // So calendar doesn't deleted it twice
mCalendar->setFilter(Q_NULLPTR); // So calendar doesn't deleted it twice
qDeleteAll(mFilters);
qDeleteAll(mExtensions);
......@@ -501,7 +501,7 @@ void CalendarView::readFilterSettings(KConfig *config)
}
int pos = filterList.indexOf(currentFilter);
mCurrentFilter = 0;
mCurrentFilter = Q_NULLPTR;
if (pos >= 0) {
mCurrentFilter = mFilters.at(pos);
}
......@@ -583,7 +583,7 @@ void CalendarView::updateConfig(const QByteArray &receiver)
if (mCalPrinter) {
mCalPrinter->deleteLater();
mCalPrinter = 0;
mCalPrinter = Q_NULLPTR;
}
KOGlobals::self()->setHolidays(new KHolidays::HolidayRegion(KOPrefs::instance()->mHolidays));
......@@ -853,7 +853,7 @@ void CalendarView::edit_paste()
QDateTime endDT;
KDateTime finalDateTime;
bool useEndTime = false;
KCalUtils::DndFactory::PasteFlags pasteFlags = 0;
KCalUtils::DndFactory::PasteFlags pasteFlags = Q_NULLPTR;
KOrg::BaseView *curView = mViewManager->currentView();
KOAgendaView *agendaView = mViewManager->agendaView();
......@@ -2013,7 +2013,7 @@ void CalendarView::updateFilter()
int pos = mFilters.indexOf(mCurrentFilter);
if (pos < 0) {
mCurrentFilter = 0;
mCurrentFilter = Q_NULLPTR;
}
filters << i18n("No filter");
......@@ -2032,7 +2032,7 @@ void CalendarView::updateFilter()
void CalendarView::filterActivated(int filterNo)
{
KCalCore::CalFilter *newFilter = 0;
KCalCore::CalFilter *newFilter = Q_NULLPTR;
if (filterNo > 0 && filterNo <= int(mFilters.count())) {
newFilter = mFilters.at(filterNo - 1);
}
......@@ -2047,7 +2047,7 @@ void CalendarView::filterActivated(int filterNo)
bool CalendarView::isFiltered() const
{
return mCurrentFilter != 0;
return mCurrentFilter != Q_NULLPTR;
}
QString CalendarView::currentFilterName() const
......
......@@ -128,7 +128,7 @@ public:
};
void setCalendar(const Akonadi::ETMCalendar::Ptr &);
Akonadi::ETMCalendar::Ptr calendar() const;
Akonadi::ETMCalendar::Ptr calendar() const Q_DECL_OVERRIDE;
void showMessage(const QString &message, KMessageWidget::MessageType);
......@@ -162,7 +162,7 @@ public:
}
// TODO_NG
//IncidenceEditors::IncidenceEditor *editorDialog( const Akonadi::Item &item ) const;
virtual Akonadi::IncidenceChanger *incidenceChanger() const
virtual Akonadi::IncidenceChanger *incidenceChanger() const Q_DECL_OVERRIDE
{
return mChanger;
}
......@@ -174,12 +174,12 @@ public:
*/
void updateHighlightModes();
QDate startDate();
QDate endDate();
QDate startDate() Q_DECL_OVERRIDE;
QDate endDate() Q_DECL_OVERRIDE;
KOrg::BaseView *currentView() const;
void addView(KOrg::BaseView *);
void showView(KOrg::BaseView *);
void addView(KOrg::BaseView *) Q_DECL_OVERRIDE;
void showView(KOrg::BaseView *) Q_DECL_OVERRIDE;
/**
* Adds a calendar view extension widget. CalendarView takes ownership of the
......@@ -191,7 +191,7 @@ public:
* Returns the item selected in the current view (or an invalid one if none selected)
* @reimp
*/
Akonadi::Item currentSelection();
Akonadi::Item currentSelection() Q_DECL_OVERRIDE;
/**
* Returns a pointer to the incidence selected in the current view. If there
......@@ -259,7 +259,7 @@ Q_SIGNALS:
/** Emitted when auto-archiving options were modified */
void autoArchivingSettingsModified();
void newIncidenceChanger(Akonadi::IncidenceChanger *);
void newIncidenceChanger(Akonadi::IncidenceChanger *) Q_DECL_OVERRIDE;
void exportHTML(KOrg::HTMLExportSettings *);
void filtersUpdated(const QStringList &, int);
......@@ -326,7 +326,7 @@ public Q_SLOTS:
bool showIncidenceContext(Akonadi::Item::Id id);
/** Create an editor for the supplied incidence. It calls the correct editXXX method*/
bool editIncidence(const Akonadi::Item &item, bool isCounter = false);
bool editIncidence(const Akonadi::Item &item, bool isCounter = false) Q_DECL_OVERRIDE;
bool editIncidence(Akonadi::Item::Id id);
void editIncidence();
......@@ -462,7 +462,7 @@ public Q_SLOTS:
void updateView(const QDate &start, const QDate &end,
const QDate &preferredMonth, const bool updateTodos = true);
void updateView();
void updateView() Q_DECL_OVERRIDE;
void updateUnmanagedViews();
......
......@@ -27,7 +27,7 @@
#include <QTimer>
DateChecker::DateChecker(QObject *parent) : QObject(parent), mUpdateTimer(0)
DateChecker::DateChecker(QObject *parent) : QObject(parent), mUpdateTimer(Q_NULLPTR)
{
enableRollover(FollowMonth);
}
......@@ -43,7 +43,7 @@ void DateChecker::enableRollover(RolloverType r)
if (mUpdateTimer) {
mUpdateTimer->stop();
delete mUpdateTimer;
mUpdateTimer = 0;
mUpdateTimer = Q_NULLPTR;
}
break;
case FollowDay:
......
......@@ -406,7 +406,7 @@ void DateNavigatorContainer::handleWeekClickedSignal(const QDate &week, const QD
KDateNavigator *DateNavigatorContainer::firstNavigatorForDate(const QDate &date) const
{
KDateNavigator *navigator = 0;
KDateNavigator *navigator = Q_NULLPTR;
if (date.isValid()) {
QPair<QDate, QDate> limits = KODayMatrix::matrixLimits(mNavigatorView->month());
......
......@@ -67,7 +67,7 @@ FilterEditDialog::FilterEditDialog(QList<KCalCore::CalFilter *> *filters, QWidge
FilterEditDialog::~FilterEditDialog()
{
delete mFilterEdit;
mFilterEdit = 0;
mFilterEdit = Q_NULLPTR;
}
void FilterEditDialog::updateFilterList()
......@@ -93,7 +93,7 @@ void FilterEditDialog::setDialogConsistent(bool consistent)
}
FilterEdit::FilterEdit(QList<KCalCore::CalFilter *> *filters, QWidget *parent)
: QWidget(parent), mCurrent(0), mCategorySelectDialog(0)
: QWidget(parent), mCurrent(Q_NULLPTR), mCategorySelectDialog(Q_NULLPTR)
{
setupUi(this);
searchline->setListWidget(mRulesList);
......@@ -265,7 +265,7 @@ void FilterEdit::bDeletePressed()
KCalCore::CalFilter *filter = mFilters->at(selected);
mFilters->removeAll(filter);
delete filter;
mCurrent = 0;
mCurrent = Q_NULLPTR;
updateFilterList();
mRulesList->setCurrentRow(qMin(mRulesList->count() - 1, selected));
emit filterChanged();
......
......@@ -35,7 +35,7 @@ public:
: q(qq),
mChanges(EventViews::EventView::IncidencesAdded |
EventViews::EventView::DatesChanged),
calendar(0)
calendar(Q_NULLPTR)
{
QByteArray cname = q->metaObject()->className();
cname.replace(':', '_');
......@@ -56,7 +56,7 @@ public:
};
BaseView::BaseView(QWidget *parent)
: QWidget(parent), mChanger(0), d(new Private(this))
: QWidget(parent), mChanger(Q_NULLPTR), d(new Private(this))
{
}
......
......@@ -48,7 +48,7 @@ public:
typedef QList<Part *> List;
explicit Part(MainWindow *parent)
: KParts::Part(parent ? (parent->topLevelWidget()) : 0), mMainWindow(parent)
: KParts::Part(parent ? (parent->topLevelWidget()) : Q_NULLPTR), mMainWindow(parent)
{
}
......@@ -76,9 +76,9 @@ public:
virtual Part *createPluginFactory(MainWindow *parent) = 0;
protected:
virtual QObject *createObject(QObject *, const char *, const QStringList &)
virtual QObject *createObject(QObject *, const char *, const QStringList &) Q_DECL_OVERRIDE
{
return 0;
return Q_NULLPTR;
}
};
......
......@@ -65,7 +65,7 @@ public:
return;
}
QUiLoader builder;
QWidget *wdg = builder.load(&f, 0);
QWidget *wdg = builder.load(&f, Q_NULLPTR);
f.close();
if (wdg) {
setText(0, wdg->windowTitle());
......@@ -144,12 +144,12 @@ private:
KCMDesignerFields::KCMDesignerFields(QWidget *parent,
const QVariantList &args)
: KCModule(parent, args),
mPageView(0),
mPagePreview(0),
mPageDetails(0),
mDeleteButton(0),
mImportButton(0),
mDesignerButton(0)
mPageView(Q_NULLPTR),
mPagePreview(Q_NULLPTR),
mPageDetails(Q_NULLPTR),
mDeleteButton(Q_NULLPTR),
mImportButton(Q_NULLPTR),
mDesignerButton(Q_NULLPTR)
{
KAboutData *about = new KAboutData(QStringLiteral("KCMDesignerfields"),
i18n("KCMDesignerfields"),
......@@ -194,7 +194,7 @@ void KCMDesignerFields::deleteFile()
this,
i18n("<qt>Do you really want to delete '<b>%1</b>'?</qt>",
pageItem->text(0)), QString(), KStandardGuiItem::del()) == KMessageBox::Continue) {
KIO::NetAccess::del(pageItem->path(), 0);
KIO::NetAccess::del(pageItem->path(), Q_NULLPTR);
}
}
// The actual view refresh will be done automagically by the slots connected to kdirwatch
......@@ -242,7 +242,7 @@ void KCMDesignerFields::loadActivePages(const QStringList &ai)
{
QTreeWidgetItemIterator it(mPageView);
while (*it) {
if ((*it)->parent() == 0) {
if ((*it)->parent() == Q_NULLPTR) {
PageItem *item = static_cast<PageItem *>(*it);
if (ai.contains(item->name())) {
item->setCheckState(0, Qt::Checked);
......@@ -270,7 +270,7 @@ QStringList KCMDesignerFields::saveActivePages()
QStringList activePages;
while (*it) {
if ((*it)->parent() == 0) {
if ((*it)->parent() == Q_NULLPTR) {
PageItem *item = static_cast<PageItem *>(*it);
activePages.append(item->name());
}
......@@ -382,7 +382,7 @@ void KCMDesignerFields::initGUI()
void KCMDesignerFields::updatePreview()
{
QTreeWidgetItem *item = 0;
QTreeWidgetItem *item = Q_NULLPTR;
if (mPageView->selectedItems().size() == 1) {
item = mPageView->selectedItems().first();
}
......@@ -430,7 +430,7 @@ void KCMDesignerFields::updatePreview()
void KCMDesignerFields::itemClicked(QTreeWidgetItem *item)
{
if (!item || item->parent() != 0) {
if (!item || item->parent() != Q_NULLPTR) {
return;
}
......@@ -455,7 +455,7 @@ void KCMDesignerFields::startDesigner()
// finally jump there
QDir::setCurrent(QLatin1String(cepPath.toLocal8Bit()));
QTreeWidgetItem *item = 0;
QTreeWidgetItem *item = Q_NULLPTR;
if (mPageView->selectedItems().size() == 1) {
item = mPageView->selectedItems().first();
}
......
......@@ -101,7 +101,7 @@ KDateNavigator::~KDateNavigator()
void KDateNavigator::setCalendar(const Akonadi::ETMCalendar::Ptr &calendar)
{
if (mCalendar) {
disconnect(mCalendar.data(), 0, this, 0);
disconnect(mCalendar.data(), Q_NULLPTR, this, Q_NULLPTR);
}
mCalendar = calendar;
......
......@@ -41,7 +41,7 @@ public:
Create new instance of KOrganizer. If there is already running a
KOrganizer only an additional main window is opened.
*/
int newInstance();
int newInstance() Q_DECL_OVERRIDE;
private:
/**
......
......@@ -42,7 +42,7 @@ public:
/**reimp*/
bool setData(const QModelIndex &index, const QVariant &value,
int role = Qt::EditRole);
int role = Qt::EditRole) Q_DECL_OVERRIDE;
Q_SIGNALS:
void aboutToToggle(bool oldState);
......
......@@ -32,7 +32,7 @@
#include <KServiceTypeTrader>
#include <KXMLGUIFactory>
KOCore *KOCore::mSelf = 0;
KOCore *KOCore::mSelf = Q_NULLPTR;
KOCore *KOCore::self()
{
......@@ -44,13 +44,13 @@ KOCore *KOCore::self()
}
KOCore::KOCore()
: mCalendarDecorationsLoaded(false), mIdentityManager(0)
: mCalendarDecorationsLoaded(false), mIdentityManager(Q_NULLPTR)
{
}
KOCore::~KOCore()
{
mSelf = 0;
mSelf = Q_NULLPTR;
}
KService::List KOCore::availablePlugins(const QString &type, int version)
......@@ -86,7 +86,7 @@ CalendarSupport::Plugin *KOCore::loadPlugin(KService::Ptr service)
qCDebug(KORGANIZER_LOG) << service->library();
if (!service->hasServiceType(CalendarSupport::Plugin::serviceType())) {
return 0;
return Q_NULLPTR;
}
KPluginLoader loader(*service);
......@@ -94,7 +94,7 @@ CalendarSupport::Plugin *KOCore::loadPlugin(KService::Ptr service)
if (!factory) {
qCDebug(KORGANIZER_LOG) << "Factory creation failed";
return 0;
return Q_NULLPTR;
}
CalendarSupport::PluginFactory *pluginFactory =
......@@ -102,7 +102,7 @@ CalendarSupport::Plugin *KOCore::loadPlugin(KService::Ptr service)
if (!pluginFactory) {
qCDebug(KORGANIZER_LOG) << "Cast failed";
return 0;
return Q_NULLPTR;
}
return pluginFactory->createPluginFactory();
......@@ -117,7 +117,7 @@ CalendarSupport::Plugin *KOCore::loadPlugin(const QString &name)
return loadPlugin(*it);
}
}
return 0;
return Q_NULLPTR;
}
EventViews::CalendarDecoration::Decoration *KOCore::loadCalendarDecoration(KService::Ptr service)
......@@ -127,7 +127,7 @@ EventViews::CalendarDecoration::Decoration *KOCore::loadCalendarDecoration(KServ
if (!factory) {
qCDebug(KORGANIZER_LOG) << "Factory creation failed";
return 0;
return Q_NULLPTR;
}
EventViews::CalendarDecoration::DecorationFactory *pluginFactory =
......@@ -135,7 +135,7 @@ EventViews::CalendarDecoration::Decoration *KOCore::loadCalendarDecoration(KServ
if (!pluginFactory) {
qCDebug(KORGANIZER_LOG) << "Cast failed";
return 0;