Commit 601af0f0 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Const'ify variable

parent fc750862
Pipeline #78129 passed with stage
in 6 minutes and 20 seconds
......@@ -55,7 +55,7 @@ public:
{
}
int todayColumn() const;
Q_REQUIRED_RESULT int todayColumn() const;
public:
EventView *const mEventView;
......
......@@ -276,7 +276,7 @@ private:
int mCellXLeft, mCellXRight;
int mCellYTop, mCellYBottom;
EventView *mEventView = nullptr;
EventView *const mEventView;
MultiViewCalendar::Ptr mCalendar;
KCalendarCore::Incidence::Ptr mIncidence;
QDateTime mOccurrenceDateTime;
......
......@@ -94,7 +94,7 @@ public:
public:
int mColumns = 1;
Location mLocation;
const Location mLocation;
QPixmap mPixmap;
QVector<bool> mEnabled;
......@@ -165,24 +165,9 @@ class AgendaView::Private : public Akonadi::ETMCalendar::CalendarObserver
public:
explicit Private(AgendaView *parent, bool isInteractive, bool isSideBySide)
: q(parent)
, mTopDayLabels(nullptr)
, mLayoutTopDayLabels(nullptr)
, mTopDayLabelsFrame(nullptr)
, mLayoutBottomDayLabels(nullptr)
, mBottomDayLabels(nullptr)
, mBottomDayLabelsFrame(nullptr)
, mTimeBarHeaderFrame(nullptr)
, mAllDayAgenda(nullptr)
, mAgenda(nullptr)
, mTimeLabelsZone(nullptr)
, mAllowAgendaUpdate(true)
, mUpdateItem(0)
, mIsSideBySide(isSideBySide)
, mDummyAllDayLeft(nullptr)
, mUpdateAllDayAgenda(true)
, mUpdateAgenda(true)
, mIsInteractive(isInteractive)
, mUpdateEventIndicatorsScheduled(false)
, mViewCalendar(MultiViewCalendar::Ptr(new MultiViewCalendar()))
{
mViewCalendar->mAgendaView = q;
......@@ -222,18 +207,18 @@ public:
QDateTime mTimeSpanBegin;
QDateTime mTimeSpanEnd;
bool mTimeSpanInAllDay;
bool mAllowAgendaUpdate;
bool mTimeSpanInAllDay = true;
bool mAllowAgendaUpdate = true;
Akonadi::Item mUpdateItem;
const bool mIsSideBySide;
QWidget *mDummyAllDayLeft = nullptr;
bool mUpdateAllDayAgenda;
bool mUpdateAgenda;
bool mUpdateAllDayAgenda = true;
bool mUpdateAgenda = true;
bool mIsInteractive;
bool mUpdateEventIndicatorsScheduled;
bool mUpdateEventIndicatorsScheduled = false;
// Contains days that have at least one all-day Event with TRANSP: OPAQUE (busy)
// that has you as organizer or attendee so we can color background with a different
......
......@@ -72,7 +72,7 @@ private:
void setCellHeight(double height);
void colorMousePos();
QTimeZone mTimezone;
const QTimeZone mTimezone;
int mRows;
double mCellHeight;
int mMiniWidth;
......
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