mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-23 07:15:35 +08:00
Fixed clazy warnings: rule of zero/three/five.
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
@@ -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(); }
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user