diff options
author | Saturneric <[email protected]> | 2022-03-19 08:42:47 +0000 |
---|---|---|
committer | Saturneric <[email protected]> | 2022-03-19 08:42:47 +0000 |
commit | f8a513cee895e656563ca90297b46f21e1e1edb3 (patch) | |
tree | b4d45b801a1a4a25c15db8e6d44dd77f5bf0e8de /src/ui/widgets/FindWidget.cpp | |
parent | Merge branch 'develop-2.0.5' of github.com:saturneric/GpgFrontend into develo... (diff) | |
download | GpgFrontend-f8a513cee895e656563ca90297b46f21e1e1edb3.tar.gz GpgFrontend-f8a513cee895e656563ca90297b46f21e1e1edb3.zip |
<fix>(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).
Diffstat (limited to '')
-rw-r--r-- | src/ui/widgets/FindWidget.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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()); |