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

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