Mercurial > minori
diff src/gui/widgets/sidebar.cpp @ 63:3d2decf093bb
*: fix many clang warnings
author | Paper <mrpapersonic@gmail.com> |
---|---|
date | Sun, 01 Oct 2023 06:39:47 -0400 |
parents | 4c6dd5999b39 |
children | 2417121d894e |
line wrap: on
line diff
--- a/src/gui/widgets/sidebar.cpp Sun Oct 01 06:16:06 2023 -0400 +++ b/src/gui/widgets/sidebar.cpp Sun Oct 01 06:39:47 2023 -0400 @@ -1,10 +1,10 @@ #include "gui/widgets/sidebar.h" +#include <QDebug> #include <QFrame> #include <QListWidget> #include <QListWidgetItem> #include <QMessageBox> #include <QMouseEvent> -#include <QDebug> SideBar::SideBar(QWidget* parent) : QListWidget(parent) { setFrameShape(QFrame::NoFrame); @@ -66,12 +66,12 @@ int SideBar::AddSeparatorsToIndex(int index) { int i, j; - for (i = 0, j = 0; i < index; ) { + for (i = 0, j = 0; i < index;) { i++; if (IndexIsSeparator(indexFromItem(item(i)))) j++; } - return i+j; + return i + j; } int SideBar::RemoveSeparatorsFromIndex(int index) {