Skip to content

Commit

Permalink
Fixed some compiler warnings on Ubuntu 22.04
Browse files Browse the repository at this point in the history
  • Loading branch information
githubuser0xFFFF committed Dec 8, 2023
1 parent f848df7 commit 44ff9e9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions src/DockContainerWidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2063,7 +2063,7 @@ CDockAreaWidget* CDockContainerWidget::topLevelDockArea() const
QList<CDockWidget*> CDockContainerWidget::dockWidgets() const
{
QList<CDockWidget*> Result;
for (const auto DockArea : d->DockAreas)
for (const auto& DockArea : d->DockAreas)
{
if (!DockArea)
{
Expand Down Expand Up @@ -2099,7 +2099,7 @@ void CDockContainerWidget::removeAutoHideWidget(CAutoHideDockContainer* Autohide
CDockWidget::DockWidgetFeatures CDockContainerWidget::features() const
{
CDockWidget::DockWidgetFeatures Features(CDockWidget::AllDockWidgetFeatures);
for (const auto DockArea : d->DockAreas)
for (const auto& DockArea : d->DockAreas)
{
if (!DockArea)
{
Expand All @@ -2122,7 +2122,7 @@ CFloatingDockContainer* CDockContainerWidget::floatingWidget() const
//============================================================================
void CDockContainerWidget::closeOtherAreas(CDockAreaWidget* KeepOpenArea)
{
for (const auto DockArea : d->DockAreas)
for (const auto& DockArea : d->DockAreas)
{
if (!DockArea || DockArea == KeepOpenArea)
{
Expand Down
6 changes: 3 additions & 3 deletions src/DockManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -587,7 +587,7 @@ bool CDockManager::eventFilter(QObject *obj, QEvent *e)
// Window always on top of the MainWindow.
if (e->type() == QEvent::WindowActivate)
{
for (auto _window : floatingWidgets())
for (auto _window : d->FloatingWidgets)
{
if (!_window->isVisible() || window()->isMinimized())
{
Expand All @@ -609,7 +609,7 @@ bool CDockManager::eventFilter(QObject *obj, QEvent *e)
}
else if (e->type() == QEvent::WindowDeactivate)
{
for (auto _window : floatingWidgets())
for (auto _window : d->FloatingWidgets)
{
if (!_window->isVisible() || window()->isMinimized())
{
Expand All @@ -632,7 +632,7 @@ bool CDockManager::eventFilter(QObject *obj, QEvent *e)
// Sync minimize with MainWindow
if (e->type() == QEvent::WindowStateChange)
{
for (auto _window : floatingWidgets())
for (auto _window : d->FloatingWidgets)
{
if (! _window->isVisible())
{
Expand Down

0 comments on commit 44ff9e9

Please sign in to comment.