From a0db25401632e2fe7eef77458dcb298f64d8bdd5 Mon Sep 17 00:00:00 2001 From: Roman Telezhynskyi Date: Tue, 10 May 2022 17:29:35 +0300 Subject: [PATCH] Code style. --- src/app/valentina/mainwindow.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/app/valentina/mainwindow.cpp b/src/app/valentina/mainwindow.cpp index 0f56d027c..05383b234 100644 --- a/src/app/valentina/mainwindow.cpp +++ b/src/app/valentina/mainwindow.cpp @@ -401,7 +401,7 @@ MainWindow::MainWindow(QWidget *parent) //--------------------------------------------------------------------------------------------------------------------- void MainWindow::AddPP(const QString &PPName) { - if (doc->appendPP(PPName) == false) + if (not doc->appendPP(PPName)) { qCDebug(vMainWindow, "Error creating pattern piece with the name %s.", qUtf8Printable(PPName)); return; @@ -433,7 +433,7 @@ void MainWindow::AddPP(const QString &PPName) initData.name = label; initData.nameActivPP = PPName; - auto spoint = VToolBasePoint::Create(initData); + auto *spoint = VToolBasePoint::Create(initData); emit ui->view->itemClicked(spoint); SetEnableTool(true);