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:
@@ -71,7 +71,7 @@ void ComponentManager::setup(ViewLayout* viewLayout)
|
||||
|
||||
void ComponentManager::clearComponents()
|
||||
{
|
||||
for (std::shared_ptr<Component> component : m_components)
|
||||
for (const std::shared_ptr<Component>& component : m_components)
|
||||
{
|
||||
Controller* controller = component->getController<Controller>();
|
||||
|
||||
@@ -84,7 +84,7 @@ void ComponentManager::clearComponents()
|
||||
|
||||
void ComponentManager::refreshViews()
|
||||
{
|
||||
for (std::shared_ptr<Component> component : m_components)
|
||||
for (const std::shared_ptr<Component>& component : m_components)
|
||||
{
|
||||
View* view = component->getView<View>();
|
||||
|
||||
@@ -94,12 +94,12 @@ void ComponentManager::refreshViews()
|
||||
}
|
||||
}
|
||||
|
||||
for (std::shared_ptr<CompositeView> view : m_compositeViews)
|
||||
for (const std::shared_ptr<CompositeView>& view : m_compositeViews)
|
||||
{
|
||||
view->refreshView();
|
||||
}
|
||||
|
||||
for (std::shared_ptr<TabbedView> view : m_tabbedViews)
|
||||
for (const std::shared_ptr<TabbedView>& view : m_tabbedViews)
|
||||
{
|
||||
view->refreshView();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user