]> git.tdb.fi Git - libs/gui.git/blobdiff - source/graphics/imageloader.h
Avoid using std::list
[libs/gui.git] / source / graphics / imageloader.h
index 9645f116ffd4228a1098c425339fe7a0f39f3ec3..53c9e7b7c88ffe04c5fc5ad098cc14ac7acafaf2 100644 (file)
@@ -53,19 +53,18 @@ protected:
 
        struct Registry
        {
-               std::list<RegisterBase *> loaders;
-               bool changed;
+               std::vector<RegisterBase *> loaders;
+               bool changed = false;
 
-               Registry();
                ~Registry();
        };
 
 private:
-       IO::Base *source;
-       State state;
+       IO::Base *source = nullptr;
+       State state = INITIAL;
 
 protected:
-       ImageLoader();
+       ImageLoader() = default;
 public:
        virtual ~ImageLoader();