Fixed clazy warnings: rule of zero/three/five.

This commit is contained in:
Mat Sutcliffe
2018-12-17 16:47:38 +00:00
parent 20d4575c55
commit 684ffeb671
3 changed files with 12 additions and 0 deletions

View File

@@ -33,6 +33,12 @@ namespace BlackGui
//! Destructor
~CActionItem();
//! Not copyable
//! @{
CActionItem(const CActionItem &) = delete;
CActionItem &operator =(const CActionItem &) = delete;
//! @}
//! Append a new child
void appendChild(CActionItem *child);

View File

@@ -297,6 +297,9 @@ namespace BlackMisc
//! Move constructor
CDictionary(CDictionary &&other) noexcept : m_impl(std::move(other.m_impl)) {}
//! Destructor
~CDictionary() = default;
//! Returns iterator at the beginning of the dictionary
iterator begin() { return m_impl.begin(); }

View File

@@ -58,6 +58,9 @@ namespace BlackMisc
//! Move assignment operator.
CVariantMap &operator =(CVariantMap &&other) noexcept { CDictionary::operator =(std::move(other)); return *this; }
//! Destructor.
~CVariantMap() = default;
//! Insert values from this map into an existing JSON object.
QJsonObject &mergeToJson(QJsonObject &json) const;