]> cloud.milkyroute.net Git - dolphin.git/blobdiff - src/kitemviews/kitemset.h
[CLAZY] Fixed all level 1 and level 2 warnings with small exceptions
[dolphin.git] / src / kitemviews / kitemset.h
index 385010f7d634fd53b204995588b590aaf4ad2ad1..31fe1d24950b8813dbe531aa2c3d5d8d4c012dee 100644 (file)
@@ -45,6 +45,8 @@ class KItemSet
 public:
     KItemSet();
     KItemSet(const KItemSet& other);
+    ~KItemSet();
+    KItemSet& operator=(const KItemSet& other);
 
     /**
      * Returns the number of items in the set.
@@ -80,6 +82,8 @@ public:
             return *this;
         }
 
+        ~iterator() = default;
+
         int operator*() const
         {
             return m_rangeIt->index + m_offset;
@@ -170,6 +174,8 @@ public:
             return *this;
         }
 
+        ~const_iterator() = default;
+
         int operator*() const
         {
             return m_rangeIt->index + m_offset;
@@ -297,6 +303,14 @@ inline KItemSet::KItemSet(const KItemSet& other) :
 {
 }
 
+inline KItemSet::~KItemSet() = default;
+
+inline KItemSet& KItemSet::operator=(const KItemSet& other)
+{
+    m_itemRanges=other.m_itemRanges;
+    return *this;
+}
+
 inline int KItemSet::count() const
 {
     int result = 0;