Fixed some compiler warnings on Ubuntu 22.04

This commit is contained in:
Uwe Kindler 2023-12-08 07:58:36 +01:00
parent f848df74c3
commit 44ff9e9956
2 changed files with 6 additions and 6 deletions

View File

@ -2063,7 +2063,7 @@ CDockAreaWidget* CDockContainerWidget::topLevelDockArea() const
QList<CDockWidget*> CDockContainerWidget::dockWidgets() const QList<CDockWidget*> CDockContainerWidget::dockWidgets() const
{ {
QList<CDockWidget*> Result; QList<CDockWidget*> Result;
for (const auto DockArea : d->DockAreas) for (const auto& DockArea : d->DockAreas)
{ {
if (!DockArea) if (!DockArea)
{ {
@ -2099,7 +2099,7 @@ void CDockContainerWidget::removeAutoHideWidget(CAutoHideDockContainer* Autohide
CDockWidget::DockWidgetFeatures CDockContainerWidget::features() const CDockWidget::DockWidgetFeatures CDockContainerWidget::features() const
{ {
CDockWidget::DockWidgetFeatures Features(CDockWidget::AllDockWidgetFeatures); CDockWidget::DockWidgetFeatures Features(CDockWidget::AllDockWidgetFeatures);
for (const auto DockArea : d->DockAreas) for (const auto& DockArea : d->DockAreas)
{ {
if (!DockArea) if (!DockArea)
{ {
@ -2122,7 +2122,7 @@ CFloatingDockContainer* CDockContainerWidget::floatingWidget() const
//============================================================================ //============================================================================
void CDockContainerWidget::closeOtherAreas(CDockAreaWidget* KeepOpenArea) void CDockContainerWidget::closeOtherAreas(CDockAreaWidget* KeepOpenArea)
{ {
for (const auto DockArea : d->DockAreas) for (const auto& DockArea : d->DockAreas)
{ {
if (!DockArea || DockArea == KeepOpenArea) if (!DockArea || DockArea == KeepOpenArea)
{ {

View File

@ -587,7 +587,7 @@ bool CDockManager::eventFilter(QObject *obj, QEvent *e)
// Window always on top of the MainWindow. // Window always on top of the MainWindow.
if (e->type() == QEvent::WindowActivate) if (e->type() == QEvent::WindowActivate)
{ {
for (auto _window : floatingWidgets()) for (auto _window : d->FloatingWidgets)
{ {
if (!_window->isVisible() || window()->isMinimized()) if (!_window->isVisible() || window()->isMinimized())
{ {
@ -609,7 +609,7 @@ bool CDockManager::eventFilter(QObject *obj, QEvent *e)
} }
else if (e->type() == QEvent::WindowDeactivate) else if (e->type() == QEvent::WindowDeactivate)
{ {
for (auto _window : floatingWidgets()) for (auto _window : d->FloatingWidgets)
{ {
if (!_window->isVisible() || window()->isMinimized()) if (!_window->isVisible() || window()->isMinimized())
{ {
@ -632,7 +632,7 @@ bool CDockManager::eventFilter(QObject *obj, QEvent *e)
// Sync minimize with MainWindow // Sync minimize with MainWindow
if (e->type() == QEvent::WindowStateChange) if (e->type() == QEvent::WindowStateChange)
{ {
for (auto _window : floatingWidgets()) for (auto _window : d->FloatingWidgets)
{ {
if (! _window->isVisible()) if (! _window->isVisible())
{ {