From f8a513cee895e656563ca90297b46f21e1e1edb3 Mon Sep 17 00:00:00 2001 From: Saturneric Date: Sat, 19 Mar 2022 16:42:47 +0800 Subject: (core, ui): fix codacy issues. 1. The scope of the variable 'r' can be reduced. 2. Class 'IMAPFolder' does not have a copy constructor which is recommended since it has dynamic memory/resource allocation(s). 3. Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). --- src/ui/widgets/FindWidget.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/ui/widgets/FindWidget.cpp') diff --git a/src/ui/widgets/FindWidget.cpp b/src/ui/widgets/FindWidget.cpp index 58ceda7c..defcf31c 100644 --- a/src/ui/widgets/FindWidget.cpp +++ b/src/ui/widgets/FindWidget.cpp @@ -59,7 +59,7 @@ FindWidget::FindWidget(QWidget* parent, PlainTextEditorPage* edit) } void FindWidget::set_background() { - auto cursor = m_text_page_->GetTextPage()->textCursor(); + // auto cursor = m_text_page_->GetTextPage()->textCursor(); // if match is found set background of QLineEdit to white, otherwise to red QPalette bgPalette(find_edit_->palette()); -- cgit v1.2.3