Commit 280e389c authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

const'ify variables

parent 28b4dca4
Pipeline #90202 passed with stage
in 11 minutes and 3 seconds
......@@ -40,13 +40,13 @@ class Akonadi::ContactViewerPrivate
public:
explicit ContactViewerPrivate(ContactViewer *parent)
: mParent(parent)
, mQRCode(Prison::createBarcode(Prison::QRCode))
{
mStandardContactFormatter = new StandardContactFormatter;
mContactFormatter = mStandardContactFormatter;
KConfig config(QStringLiteral("akonadi_contactrc"));
KConfigGroup group(&config, QStringLiteral("View"));
mShowQRCode = group.readEntry("QRCodes", true);
mQRCode = Prison::createBarcode(Prison::QRCode);
}
~ContactViewerPrivate()
......@@ -213,7 +213,7 @@ public:
AbstractContactFormatter *mContactFormatter = nullptr;
AbstractContactFormatter *mStandardContactFormatter = nullptr;
CollectionFetchJob *mParentCollectionFetchJob = nullptr;
Prison::AbstractBarcode *mQRCode = nullptr;
Prison::AbstractBarcode *const mQRCode;
bool mShowQRCode = true;
};
......
......@@ -32,7 +32,7 @@ private:
void setFirstColumnAsCurrent();
void removeField(int row, QAbstractItemModel *model);
const QIcon mIcon;
QSize mButtonSize;
const QSize mButtonSize;
QAbstractItemView *const mItemView;
};
}
......@@ -35,7 +35,7 @@ public:
KContacts::PhoneNumber::Type type() const;
private:
KContacts::PhoneNumber::Type mType;
const KContacts::PhoneNumber::Type mType;
KContacts::PhoneNumber::TypeList mTypeList;
QButtonGroup *mGroup = nullptr;
......
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