Commit 39be443e authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

cont'ify variable/pointer

parent 67b0ea33
Pipeline #78127 passed with stage
in 4 minutes and 43 seconds
......@@ -117,7 +117,7 @@ public:
return inc;
}
Calendar::Ptr mCalendar;
const Calendar::Ptr mCalendar;
};
//@endcond
......
......@@ -42,7 +42,7 @@ private:
QString errorTemplate(const QString &reason, const QString &origTemplateName, const Grantlee::Template &failedTemplate) const;
Grantlee::Context createContext(const QVariantHash &hash = QVariantHash()) const;
Grantlee::Engine *mEngine = nullptr;
Grantlee::Engine *const mEngine;
QSharedPointer<Grantlee::FileSystemTemplateLoader> mLoader;
QSharedPointer<GrantleeKi18nLocalizer> mLocalizer;
......
......@@ -78,7 +78,7 @@ static bool iamAttendee(const Attendee &attendee)
static QString htmlAddTag(const QString &tag, const QString &text)
{
int numLineBreaks = text.count(QLatin1Char('\n'));
QString str = QLatin1Char('<') + tag + QLatin1Char('>');
const QString str = QLatin1Char('<') + tag + QLatin1Char('>');
QString tmpText = text;
QString tmpStr = str;
if (numLineBreaks >= 0) {
......@@ -2330,7 +2330,6 @@ class KCalUtils::IncidenceFormatter::ToolTipVisitor : public Visitor
{
public:
ToolTipVisitor()
: mRichText(true)
{
}
......@@ -2375,7 +2374,7 @@ protected:
Calendar::Ptr mCalendar;
QString mLocation;
QDate mDate;
bool mRichText;
bool mRichText = true;
QString mResult;
};
......
......@@ -64,7 +64,7 @@ public:
void setIcon(const QIcon &icon);
void setCheckedChoices(int choices);
int checkedChoices() const;
Q_REQUIRED_RESULT int checkedChoices() const;
private:
const int mAvailableChoices;
......
Supports Markdown
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