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:
@@ -862,7 +862,7 @@ void QtSmartSearchBox::layoutElements()
|
||||
|
||||
bool QtSmartSearchBox::hasSelectedElements() const
|
||||
{
|
||||
for (const std::shared_ptr<QtSearchElement> element : m_elements)
|
||||
for (const std::shared_ptr<QtSearchElement>& element : m_elements)
|
||||
{
|
||||
if (element->isChecked())
|
||||
{
|
||||
@@ -887,7 +887,7 @@ std::string QtSmartSearchBox::getSelectedString() const
|
||||
|
||||
void QtSmartSearchBox::selectAllElementsWith(bool selected)
|
||||
{
|
||||
for (const std::shared_ptr<QtSearchElement> element : m_elements)
|
||||
for (const std::shared_ptr<QtSearchElement>& element : m_elements)
|
||||
{
|
||||
element->setChecked(selected);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user