From 998fb6bd89d1391209313a97c1c77e284499988f Mon Sep 17 00:00:00 2001 From: Johannes Hilden Date: Mon, 16 Oct 2017 23:13:14 +0300 Subject: [PATCH] Make member pointers const when possible --- components/qtmaterialautocomplete_internal.h | 6 +++--- components/qtmaterialscrollbar_internal.h | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/components/qtmaterialautocomplete_internal.h b/components/qtmaterialautocomplete_internal.h index 3eae5be..7e76bd5 100644 --- a/components/qtmaterialautocomplete_internal.h +++ b/components/qtmaterialautocomplete_internal.h @@ -21,9 +21,9 @@ private: Q_DISABLE_COPY(QtMaterialAutoCompleteStateMachine) QWidget *const m_menu; - QState *m_closedState; - QState *m_openState; - QState *m_closingState; + QState *const m_closedState; + QState *const m_openState; + QState *const m_closingState; }; #endif // QTMATERIALAUTOCOMPLETESTATEMACHINE_H diff --git a/components/qtmaterialscrollbar_internal.h b/components/qtmaterialscrollbar_internal.h index adffdbd..7b1cc92 100644 --- a/components/qtmaterialscrollbar_internal.h +++ b/components/qtmaterialscrollbar_internal.h @@ -21,8 +21,8 @@ private: Q_DISABLE_COPY(QtMaterialScrollBarStateMachine) QtMaterialScrollBar *const m_scrollBar; - QState *m_focusState; - QState *m_blurState; + QState *const m_focusState; + QState *const m_blurState; qreal m_opacity; };