mirror of
https://git.suyu.dev/suyu/suyu
synced 2024-12-24 18:32:49 -06:00
yuzu/bootmanager: Remove unnecessary pointer casts
We can just invoke these functions by qualifying the object name before the function.
This commit is contained in:
parent
e70f16fff7
commit
49e3a6e924
1 changed files with 6 additions and 5 deletions
|
@ -266,7 +266,7 @@ void GRenderWindow::ForwardKeyReleaseEvent(QKeyEvent* event) {
|
||||||
}
|
}
|
||||||
|
|
||||||
void GRenderWindow::BackupGeometry() {
|
void GRenderWindow::BackupGeometry() {
|
||||||
geometry = ((QWidget*)this)->saveGeometry();
|
geometry = QWidget::saveGeometry();
|
||||||
}
|
}
|
||||||
|
|
||||||
void GRenderWindow::RestoreGeometry() {
|
void GRenderWindow::RestoreGeometry() {
|
||||||
|
@ -283,9 +283,10 @@ void GRenderWindow::restoreGeometry(const QByteArray& geometry) {
|
||||||
QByteArray GRenderWindow::saveGeometry() {
|
QByteArray GRenderWindow::saveGeometry() {
|
||||||
// If we are a top-level widget, store the current geometry
|
// If we are a top-level widget, store the current geometry
|
||||||
// otherwise, store the last backup
|
// otherwise, store the last backup
|
||||||
if (parent() == nullptr)
|
if (parent() == nullptr) {
|
||||||
return ((QWidget*)this)->saveGeometry();
|
return QWidget::saveGeometry();
|
||||||
else
|
}
|
||||||
|
|
||||||
return geometry;
|
return geometry;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue