From 48c7312f4ba78ccf2947a9b4b0e6fd2bcdcb3066 Mon Sep 17 00:00:00 2001 From: trialuser02 Date: Sat, 2 Jan 2021 19:12:15 +0000 Subject: improved coding style git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@9614 90c681e8-e032-0410-971d-27865f9a5e38 --- src/plugins/Ui/qsui/playlistheader.h | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'src/plugins/Ui/qsui/playlistheader.h') diff --git a/src/plugins/Ui/qsui/playlistheader.h b/src/plugins/Ui/qsui/playlistheader.h index 7b8d68a95..b3340f1a8 100644 --- a/src/plugins/Ui/qsui/playlistheader.h +++ b/src/plugins/Ui/qsui/playlistheader.h @@ -99,24 +99,24 @@ private: }; QSize m_size_hint; - QFontMetrics *m_metrics; + QFontMetrics *m_metrics = nullptr; QMenu *m_menu, *m_alignmentMenu; QPoint m_pressed_pos; QPoint m_mouse_pos; PlayListHeaderModel *m_model; QAction *m_trackStateAction; QAction *m_autoResizeAction; - bool m_reverted; - bool m_auto_resize; - int m_number_width; - int m_scrollbar_width; + bool m_reverted = false; + bool m_auto_resize = false; + int m_number_width = 0; + int m_scrollbar_width = 0; int m_pressed_column; int m_old_size; int m_press_offset; - int m_pl_padding; - int m_sorting_column; + int m_pl_padding = 0; + int m_sorting_column = -1; - int m_offset; + int m_offset = 0; enum { @@ -124,7 +124,7 @@ private: RESIZE, MOVE, SORT - } m_task; + } m_task = NO_TASK; }; -- cgit v1.2.3-13-gbd6f