src: clazy compiler warnings
get rid of most clazy warnings (https://github.com/KDE/clazy) * range loop use refs * qcolor ctor with ints * missing Q_OBJECT macro * use .constfirst instead of .first enabled ccache for unix systems for fasterr recompiling * if ccache is in path we use it now
This commit is contained in:
@@ -32,7 +32,7 @@ void QtSelectPathsDialog::setPathsList(const std::vector<FilePath>& paths, const
|
||||
{
|
||||
std::set<FilePath> checked(checkedPaths.begin(), checkedPaths.end());
|
||||
|
||||
for (FilePath s : paths)
|
||||
for (const FilePath& s : paths)
|
||||
{
|
||||
QListWidgetItem* item = new QListWidgetItem(s.str().c_str(), m_list);
|
||||
item->setFlags(item->flags() | Qt::ItemIsUserCheckable); // set checkable flag
|
||||
@@ -61,7 +61,7 @@ void QtSelectPathsDialog::setPathsList(const std::vector<FilePath>& paths, const
|
||||
|
||||
void QtSelectPathsDialog::checkSelected(bool checked)
|
||||
{
|
||||
for(QListWidgetItem* item : m_list->selectedItems())
|
||||
for (QListWidgetItem* item : m_list->selectedItems())
|
||||
{
|
||||
item->setCheckState( (checked ? Qt::Checked : Qt::Unchecked) );
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user