X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fcollection.h;h=98a08b6757a2c3eeed121c4c262e79248d57af02;hb=e14c01b5775dd2e324b16ff49498db9b9113c523;hp=4a2f736de49cdabc4df1c9da4ce4ee96cda4753e;hpb=daca21051927eabee098e422fe5a0990acacfb96;p=libs%2Fdatafile.git diff --git a/source/collection.h b/source/collection.h index 4a2f736..98a08b6 100644 --- a/source/collection.h +++ b/source/collection.h @@ -89,10 +89,9 @@ private: std::vector types; ItemMap items; std::vector sources; - Collection *fallback; + Collection *fallback = nullptr; public: - Collection(); virtual ~Collection(); /** Adds an object into the collection. The name must not pre-exist. The @@ -335,7 +334,7 @@ class CollectionItemTypeBase protected: struct ExtractorBase { - virtual ~ExtractorBase() { } + virtual ~ExtractorBase() = default; }; template @@ -348,7 +347,7 @@ protected: std::vector suffixes; std::vector extractors; - CollectionItemTypeBase() { } + CollectionItemTypeBase() = default; public: virtual ~CollectionItemTypeBase();