From a399f044c0bd4737f14563cf0b810e6a00a9329d Mon Sep 17 00:00:00 2001 From: wmayer Date: Mon, 25 Jul 2022 01:21:23 +0200 Subject: [PATCH] Image: [skip ci] Fix several clazy issues: * Missing emit keyword on signal call ImageGui::ImageView::closeEventIgnored [-Wclazy-incorrect-emit] --- src/Mod/Image/Gui/ImageView.cpp | 2 +- src/Mod/Image/Gui/OpenGLImageBox.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Mod/Image/Gui/ImageView.cpp b/src/Mod/Image/Gui/ImageView.cpp index 548b0c1b7b..6e3a60b54b 100644 --- a/src/Mod/Image/Gui/ImageView.cpp +++ b/src/Mod/Image/Gui/ImageView.cpp @@ -332,7 +332,7 @@ void ImageView::closeEvent(QCloseEvent *e) { // ignore the close event e->ignore(); - closeEventIgnored(); // and emit a signal that we ignored it + Q_EMIT closeEventIgnored(); // and emit a signal that we ignored it } else { diff --git a/src/Mod/Image/Gui/OpenGLImageBox.cpp b/src/Mod/Image/Gui/OpenGLImageBox.cpp index 0d9231b6af..5a8f3d7d60 100644 --- a/src/Mod/Image/Gui/OpenGLImageBox.cpp +++ b/src/Mod/Image/Gui/OpenGLImageBox.cpp @@ -188,7 +188,7 @@ void GLImageBox::paintGL() // Emit a signal for owners to draw any graphics that is needed. if (_image.hasValidData()) - drawGraphics(); + Q_EMIT drawGraphics(); // flush the OpenGL graphical pipeline glFinish();