Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
PIM
KOrganizer
Commits
e7980c07
Commit
e7980c07
authored
Aug 24, 2020
by
Laurent Montel
😁
Browse files
some variables are already initialized in header
parent
3a4599c4
Pipeline
#31625
passed with stage
in 37 minutes and 6 seconds
Changes
9
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
korgac/koalarmclient.cpp
View file @
e7980c07
...
...
@@ -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
();
...
...
src/actionmanager.cpp
View file @
e7980c07
...
...
@@ -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
;
}
...
...
src/calendarview.cpp
View file @
e7980c07
...
...
@@ -84,8 +84,6 @@
CalendarView
::
CalendarView
(
QWidget
*
parent
)
:
CalendarViewBase
(
parent
)
,
mCheckableProxyModel
(
nullptr
)
,
mETMCollectionView
(
nullptr
)
,
mSearchCollectionHelper
(
this
)
{
Akonadi
::
ControlGui
::
widgetNeedsAkonadi
(
this
);
...
...
src/datechecker.cpp
View file @
e7980c07
...
...
@@ -13,7 +13,6 @@
DateChecker
::
DateChecker
(
QObject
*
parent
)
:
QObject
(
parent
)
,
mUpdateTimer
(
nullptr
)
{
enableRollover
(
FollowMonth
);
}
...
...
src/kodialogmanager.cpp
View file @
e7980c07
...
...
@@ -54,11 +54,6 @@ KODialogManager::KODialogManager(CalendarView *mainView)
:
QObject
()
,
mMainView
(
mainView
)
{
mOptionsDialog
=
nullptr
;
mSearchDialog
=
nullptr
;
mArchiveDialog
=
nullptr
;
mFilterEditDialog
=
nullptr
;
mCategoryEditDialog
=
nullptr
;
}
KODialogManager
::~
KODialogManager
()
...
...
src/koeventview.cpp
View file @
e7980c07
...
...
@@ -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
...
...
src/koeventview.h
View file @
e7980c07
...
...
@@ -152,7 +152,7 @@ private:
private:
bool
mTypeAhead
;
bool
mTypeAhead
=
false
;
QObject
*
mTypeAheadReceiver
=
nullptr
;
QList
<
QEvent
*>
mTypeAheadEvents
;
};
...
...
src/koviewmanager.cpp
View file @
e7980c07
...
...
@@ -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
()
...
...
src/koviewmanager.h
View file @
e7980c07
...
...
@@ -183,9 +183,9 @@ private:
KOrg
::
BaseView
*
mLastEventView
=
nullptr
;
QTabWidget
*
mAgendaViewTabs
=
nullptr
;
int
mAgendaViewTabIndex
;
int
mAgendaViewTabIndex
=
0
;
RangeMode
mRangeMode
;
RangeMode
mRangeMode
=
NO_RANGE
;
};
#endif
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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