From 7ef8d11baeaf1847ba7f1df5d858f8cffea9300d Mon Sep 17 00:00:00 2001 From: trialuser02 Date: Wed, 12 Aug 2020 21:03:34 +0000 Subject: coding style fixes git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@9470 90c681e8-e032-0410-971d-27865f9a5e38 --- src/plugins/Ui/skinned/listwidget.h | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) (limited to 'src/plugins/Ui/skinned/listwidget.h') diff --git a/src/plugins/Ui/skinned/listwidget.h b/src/plugins/Ui/skinned/listwidget.h index 378b5a04d..7f95c84a4 100644 --- a/src/plugins/Ui/skinned/listwidget.h +++ b/src/plugins/Ui/skinned/listwidget.h @@ -112,22 +112,20 @@ private: bool updateRowCount(); void restoreFirstVisible(); - bool m_update; - int m_pressed_index; + bool m_update = false; + int m_pressed_index, m_anchor_index, m_drop_index; QMenu *m_menu; PlayListModel *m_model; - int m_row_count, m_first, m_count; //visible rows, first visible index, total item count - PlayListItem *m_firstItem; //first visible item + int m_row_count = 0, m_first = 0, m_count = 0; //visible rows, first visible index, total item count + PlayListItem *m_firstItem = nullptr; //first visible item Skin *m_skin; - int m_anchor_index; /*! * Scroll direction that is performing in current moment. */ - ScrollDirection m_scroll_direction; - int m_prev_y; - bool m_select_on_release; - bool m_show_protocol; - int m_drop_index; + ScrollDirection m_scroll_direction = NONE; + int m_prev_y = 0; + bool m_select_on_release = false; + bool m_show_protocol = false; QList m_rows; QmmpUiSettings *m_ui_settings; PlayListPopup::PopupWidget *m_popupWidget; -- cgit v1.2.3-13-gbd6f