aboutsummaryrefslogtreecommitdiffstats
path: root/src/ui/mail/IMAPFolder.h
diff options
context:
space:
mode:
authorSaturneric <[email protected]>2022-03-19 08:42:47 +0000
committerSaturneric <[email protected]>2022-03-19 08:42:47 +0000
commitf8a513cee895e656563ca90297b46f21e1e1edb3 (patch)
treeb4d45b801a1a4a25c15db8e6d44dd77f5bf0e8de /src/ui/mail/IMAPFolder.h
parentMerge branch 'develop-2.0.5' of github.com:saturneric/GpgFrontend into develo... (diff)
downloadGpgFrontend-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/mail/IMAPFolder.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/ui/mail/IMAPFolder.h b/src/ui/mail/IMAPFolder.h
index 8d09eb94..94cb495d 100644
--- a/src/ui/mail/IMAPFolder.h
+++ b/src/ui/mail/IMAPFolder.h
@@ -49,6 +49,19 @@ class IMAPFolder {
explicit IMAPFolder(std::shared_ptr<vmime::net::folder> folder);
/**
+ * @brief Copy and construct the IMAPFolder object
+ */
+ IMAPFolder(const IMAPFolder &) = default;
+
+ /**
+ * @brief Copy the IMAPFolder object
+ */
+ * @return
+ */
+ IMAPFolder &operator=(const IMAPFolder &) = default;
+
+
+ /**
* @brief Set the Parent Folder object
*
* @param parent_node