diff options
Diffstat (limited to 'src/plugins/coreplugin/icontext.h')
-rw-r--r-- | src/plugins/coreplugin/icontext.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/coreplugin/icontext.h b/src/plugins/coreplugin/icontext.h index 01daa739b5..d7bb022c5b 100644 --- a/src/plugins/coreplugin/icontext.h +++ b/src/plugins/coreplugin/icontext.h @@ -40,7 +40,7 @@ namespace Core { class CORE_EXPORT Context { public: - Context() {} + Context() = default; explicit Context(Id c1) { add(c1); } Context(Id c1, Id c2) { add(c1); add(c2); } @@ -51,7 +51,7 @@ public: Id at(int i) const { return d.at(i); } // FIXME: Make interface slimmer. - typedef QList<Id>::const_iterator const_iterator; + using const_iterator = QList<Id>::const_iterator; const_iterator begin() const { return d.begin(); } const_iterator end() const { return d.end(); } int indexOf(Id c) const { return d.indexOf(c); } |