From b1a0a3edc8d0cf8b46cda0f6e6417eadddd921ce Mon Sep 17 00:00:00 2001 From: wmayer Date: Mon, 1 Apr 2024 15:06:49 +0200 Subject: [PATCH] Gui: fix compiler warning --- src/Gui/MDIView.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Gui/MDIView.cpp b/src/Gui/MDIView.cpp index 2d69285f9c..cc77ad6808 100644 --- a/src/Gui/MDIView.cpp +++ b/src/Gui/MDIView.cpp @@ -451,8 +451,8 @@ void MDIView::setCurrentViewMode(ViewMode mode) QString MDIView::buildWindowTitle() const { QString windowTitle; - if (Gui::Document* document = getGuiDocument()) { - windowTitle.append(QString::fromStdString(getAppDocument()->Label.getStrValue())); + if (auto document = getAppDocument()) { + windowTitle.append(QString::fromStdString(document->Label.getStrValue())); } return windowTitle;