Remove widget pointer from MoveCenterTabController
The pointer is not needed and is an anti pattern.
This commit is contained in:
@@ -159,11 +159,9 @@ void MoveCenterTabController::initStage1()
|
||||
m_lastGravityUpdateTimePoint = std::chrono::steady_clock::now();
|
||||
}
|
||||
|
||||
void MoveCenterTabController::initStage2( OverlayController* var_parent,
|
||||
QQuickWindow* var_widget )
|
||||
void MoveCenterTabController::initStage2( OverlayController* var_parent )
|
||||
{
|
||||
this->parent = var_parent;
|
||||
this->widget = var_widget;
|
||||
zeroOffsets();
|
||||
outputLogSettings();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user