diff options
| author | Artur Puzio <[email protected]> | 2016-03-16 22:17:37 +0100 |
|---|---|---|
| committer | Emmanuel Pescosta <[email protected]> | 2016-03-16 22:17:37 +0100 |
| commit | 5593c252e8d9638c86dcc2bb9edd394ea14f8ba1 (patch) | |
| tree | 486e7f04fa43758ab3011d75227e2d9791db4014 /src/kitemviews/kitemset.h | |
| parent | 59811f849ed47982f5cf73e052640bc9f250ad97 (diff) | |
[CLAZY] Fixed all level 1 and level 2 warnings with small exceptions
REVIEW: 126771
Diffstat (limited to 'src/kitemviews/kitemset.h')
| -rw-r--r-- | src/kitemviews/kitemset.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/kitemviews/kitemset.h b/src/kitemviews/kitemset.h index 385010f7d..31fe1d249 100644 --- a/src/kitemviews/kitemset.h +++ b/src/kitemviews/kitemset.h @@ -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; |
