From e44752c6e0c7dfd08e847b5b4b499818c5443276 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BE=AF=E7=BA=A2=E5=8B=8B?= Date: Tue, 23 Apr 2024 09:54:24 +0800 Subject: [PATCH] kylin-scanner: fix some build warnings and code problems MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 侯红勋 --- src/rectify.cpp | 2 +- src/showimagewidget.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/rectify.cpp b/src/rectify.cpp index 32828e2..9d58cb5 100644 --- a/src/rectify.cpp +++ b/src/rectify.cpp @@ -141,7 +141,7 @@ double CalcDegree(const Mat &srcImage, Mat &dst) //依次画出每条线段 size_t i = 0; - int loop = 300; + size_t loop = 300; if (lines.size() > loop) { loop = 300; } else { diff --git a/src/showimagewidget.cpp b/src/showimagewidget.cpp index 0a3e059..7cf46df 100644 --- a/src/showimagewidget.cpp +++ b/src/showimagewidget.cpp @@ -20,6 +20,7 @@ #include ShowImageWidget::ShowImageWidget(QWidget *parent) : QWidget(parent) + , scannerImagePath(g_config_signal->m_scannerImagePath) , m_stackImage (new QImage()) , m_editImage (new QImage()) , m_normalImage (new QImage()) @@ -29,7 +30,6 @@ ShowImageWidget::ShowImageWidget(QWidget *parent) : QWidget(parent) , m_showImageHLayout (new QHBoxLayout()) , m_toolbarWidget (new ToolBarWidget()) , m_mainVLayout (new QVBoxLayout()) - , scannerImagePath(g_config_signal->m_scannerImagePath) { setupGui(); initConnect(); -- 2.43.0