]> git.tdb.fi Git - libs/gltk.git/blobdiff - source/part.h
Style and comment updates
[libs/gltk.git] / source / part.h
index a8776c2924b8d03308e0c109a8fa6531ec3ca8e2..1e79165fd4f02af21af122262de1ac7929cd411a 100644 (file)
@@ -24,8 +24,10 @@ public:
        {
        public:
                Loader(Part &, Resources &);
-               ~Loader();
+
        private:
+               void finish() override;
+
                void graphic_normal(const std::string &);
                void graphic(State, const std::string &);
                void align(float, float);
@@ -36,13 +38,14 @@ public:
 
 private:
        std::string name;
-       const Graphic *graphic[N_STATES_];
+       const Graphic *graphic[N_STATES_] = { };
        Geometry geom;
        Sides margin;
        Alignment align;
 
 public:
        Part(const std::string &);
+
        const std::string &get_name() const { return name; }
        const Graphic *get_graphic(State) const;
        const Geometry &get_geometry() const { return geom; }