From a012426f9b97b71a7043e6cf8b2e1fd9bfbe02c0 Mon Sep 17 00:00:00 2001 From: Syarif Fakhri Date: Fri, 28 Oct 2022 14:26:55 +0800 Subject: [PATCH] cleanup - remove unused code, fix comments, add const --- src/DockContainerWidget.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/DockContainerWidget.cpp b/src/DockContainerWidget.cpp index 3fb36e2..71d17a1 100644 --- a/src/DockContainerWidget.cpp +++ b/src/DockContainerWidget.cpp @@ -1534,7 +1534,7 @@ CAutoHideDockContainer* CDockContainerWidget::createAndSetupAutoHideContainer( { if (d->DockManager != DockWidget->dockManager()) { - DockWidget->setDockManager(d->DockManager); // Overlay Dock Container needs a valid dock manager + DockWidget->setDockManager(d->DockManager); // Auto hide Dock Container needs a valid dock manager } if (!CDockManager::testConfigFlag(CDockManager::AutoHideFeatureEnabled)) { @@ -1547,11 +1547,10 @@ CAutoHideDockContainer* CDockContainerWidget::createAndSetupAutoHideContainer( sideTabBar(area)->insertSideTab(insertOrder == CDockWidget::First ? 0 : -1, DockWidget->sideTabWidget()); DockWidget->sideTabWidget()->show(); - auto AutoHideContainer = new CAutoHideDockContainer(DockWidget, area, this); + const auto AutoHideContainer = new CAutoHideDockContainer(DockWidget, area, this); AutoHideContainer->hide(); d->DockManager->dockFocusController()->clearDockWidgetFocus(DockWidget); - //auto AutoHideContainer = sideTabBar(area)->insertDockWidget(insertOrder == CDockWidget::First ? 0 : -1, DockWidget); return AutoHideContainer; }