mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-17 10:55:32 +08:00
Fixed clazy warnings: rule of zero/three/five.
This commit is contained in:
@@ -33,6 +33,12 @@ namespace BlackGui
|
|||||||
//! Destructor
|
//! Destructor
|
||||||
~CActionItem();
|
~CActionItem();
|
||||||
|
|
||||||
|
//! Not copyable
|
||||||
|
//! @{
|
||||||
|
CActionItem(const CActionItem &) = delete;
|
||||||
|
CActionItem &operator =(const CActionItem &) = delete;
|
||||||
|
//! @}
|
||||||
|
|
||||||
//! Append a new child
|
//! Append a new child
|
||||||
void appendChild(CActionItem *child);
|
void appendChild(CActionItem *child);
|
||||||
|
|
||||||
|
|||||||
@@ -297,6 +297,9 @@ namespace BlackMisc
|
|||||||
//! Move constructor
|
//! Move constructor
|
||||||
CDictionary(CDictionary &&other) noexcept : m_impl(std::move(other.m_impl)) {}
|
CDictionary(CDictionary &&other) noexcept : m_impl(std::move(other.m_impl)) {}
|
||||||
|
|
||||||
|
//! Destructor
|
||||||
|
~CDictionary() = default;
|
||||||
|
|
||||||
//! Returns iterator at the beginning of the dictionary
|
//! Returns iterator at the beginning of the dictionary
|
||||||
iterator begin() { return m_impl.begin(); }
|
iterator begin() { return m_impl.begin(); }
|
||||||
|
|
||||||
|
|||||||
@@ -58,6 +58,9 @@ namespace BlackMisc
|
|||||||
//! Move assignment operator.
|
//! Move assignment operator.
|
||||||
CVariantMap &operator =(CVariantMap &&other) noexcept { CDictionary::operator =(std::move(other)); return *this; }
|
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.
|
//! Insert values from this map into an existing JSON object.
|
||||||
QJsonObject &mergeToJson(QJsonObject &json) const;
|
QJsonObject &mergeToJson(QJsonObject &json) const;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user