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

some variables are already initialized in header

parent 3a4599c4
Pipeline #31625 passed with stage
in 37 minutes and 6 seconds
......@@ -196,7 +196,7 @@ void KOAlarmClient::checkAlarms()
return;
}
QDateTime from = mLastChecked.addSecs(1);
const QDateTime from = mLastChecked.addSecs(1);
mLastChecked = QDateTime::currentDateTime();
qCDebug(KOALARMCLIENT_LOG) << "Check:" << from.toString() << " -" << mLastChecked.toString();
......
......@@ -78,10 +78,6 @@ KOWindowList *ActionManager::mWindowList = nullptr;
ActionManager::ActionManager(KXMLGUIClient *client, CalendarView *widget, QObject *parent, KOrg::MainWindow *mainWindow, bool isPart, QMenuBar *menuBar)
: QObject(parent)
, mCollectionViewShowAction(nullptr)
, mCollectionView(nullptr)
, mCollectionViewStateSaver(nullptr)
, mCollectionSelectionModelStateSaver(nullptr)
{
new KOrgCalendarAdaptor(this);
QDBusConnection::sessionBus().registerObject(QStringLiteral("/Calendar"), this);
......@@ -90,7 +86,6 @@ ActionManager::ActionManager(KXMLGUIClient *client, CalendarView *widget, QObjec
mACollection = mGUIClient->actionCollection();
mCalendarView = widget;
mIsPart = isPart;
mTempFile = nullptr;
mMainWindow = mainWindow;
mMenuBar = menuBar;
}
......
......@@ -84,8 +84,6 @@
CalendarView::CalendarView(QWidget *parent)
: CalendarViewBase(parent)
, mCheckableProxyModel(nullptr)
, mETMCollectionView(nullptr)
, mSearchCollectionHelper(this)
{
Akonadi::ControlGui::widgetNeedsAkonadi(this);
......
......@@ -13,7 +13,6 @@
DateChecker::DateChecker(QObject *parent)
: QObject(parent)
, mUpdateTimer(nullptr)
{
enableRollover(FollowMonth);
}
......
......@@ -54,11 +54,6 @@ KODialogManager::KODialogManager(CalendarView *mainView)
: QObject()
, mMainView(mainView)
{
mOptionsDialog = nullptr;
mSearchDialog = nullptr;
mArchiveDialog = nullptr;
mFilterEditDialog = nullptr;
mCategoryEditDialog = nullptr;
}
KODialogManager::~KODialogManager()
......
......@@ -26,9 +26,6 @@
KOEventView::KOEventView(QWidget *parent)
: KOrg::BaseView(parent)
{
mTypeAhead = false;
mTypeAheadReceiver = nullptr;
//AKONADI_PORT review: the FocusLineEdit in the editor emits focusReceivedSignal(),
//which triggered finishTypeAhead. But the global focus widget in QApplication is
//changed later, thus subsequent keyevents still went to this view, triggering
......
......@@ -152,7 +152,7 @@ private:
private:
bool mTypeAhead;
bool mTypeAhead = false;
QObject *mTypeAheadReceiver = nullptr;
QList<QEvent *> mTypeAheadEvents;
};
......
......@@ -36,19 +36,6 @@ KOViewManager::KOViewManager(CalendarView *mainView)
: QObject()
, mMainView(mainView)
{
mCurrentView = nullptr;
mLastEventView = nullptr;
mWhatsNextView = nullptr;
mTodoView = nullptr;
mAgendaView = nullptr;
mAgendaSideBySideView = nullptr;
mListView = nullptr;
mJournalView = nullptr;
mTimelineView = nullptr;
mAgendaViewTabs = nullptr;
mAgendaViewTabIndex = 0;
mMonthView = nullptr;
mRangeMode = NO_RANGE;
}
KOViewManager::~KOViewManager()
......
......@@ -183,9 +183,9 @@ private:
KOrg::BaseView *mLastEventView = nullptr;
QTabWidget *mAgendaViewTabs = nullptr;
int mAgendaViewTabIndex;
int mAgendaViewTabIndex = 0;
RangeMode mRangeMode;
RangeMode mRangeMode = NO_RANGE;
};
#endif
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