]> git.tdb.fi Git - libs/gui.git/blobdiff - source/graphics/imageloader.h
Use lambdas for comparison functions
[libs/gui.git] / source / graphics / imageloader.h
index 9645f116ffd4228a1098c425339fe7a0f39f3ec3..64a741089d957d95d1bfc9574ae9efc214f78bb3 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();
 
@@ -86,8 +85,6 @@ public:
        static void register_loader();
 private:
        static Registry &get_registry();
-
-       static bool signature_size_compare(RegisterBase *, RegisterBase *);
 };
 
 template<typename T>