Commit ffcd6784 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Const'ify pointer

parent 2b921779
Pipeline #27551 passed with stage
in 6 minutes and 34 seconds
...@@ -29,7 +29,6 @@ ...@@ -29,7 +29,6 @@
using namespace KPIM; using namespace KPIM;
MultiplyingLineEditor::MultiplyingLineEditor(MultiplyingLineFactory *factory, QWidget *parent) MultiplyingLineEditor::MultiplyingLineEditor(MultiplyingLineFactory *factory, QWidget *parent)
: QWidget(parent) : QWidget(parent)
, mModified(false)
, mMultiplyingLineFactory(factory) , mMultiplyingLineFactory(factory)
{ {
QBoxLayout *topLayout = new QHBoxLayout(this); QBoxLayout *topLayout = new QHBoxLayout(this);
......
...@@ -177,10 +177,10 @@ public Q_SLOTS: ...@@ -177,10 +177,10 @@ public Q_SLOTS:
protected: protected:
virtual MultiplyingLine *activeLine() const; virtual MultiplyingLine *activeLine() const;
bool mModified; bool mModified = false;
private: private:
MultiplyingLineFactory *mMultiplyingLineFactory = nullptr; MultiplyingLineFactory *const mMultiplyingLineFactory;
MultiplyingLineView *mView = nullptr; MultiplyingLineView *mView = 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