]> git.tdb.fi Git - libs/gl.git/blobdiff - source/builders/sequencetemplate.h
Use constructor delegation instead of init functions when possible
[libs/gl.git] / source / builders / sequencetemplate.h
index 81a130ef40a04947ceeb1c4e22b143671878890c..bf1e8be185e086efc6b3597139f827630e672536 100644 (file)
@@ -8,7 +8,7 @@
 #include "blend.h"
 #include "depthtest.h"
 #include "postprocessor.h"
-#include "predicate.h"
+#include "resources.h"
 #include "stenciltest.h"
 
 namespace Msp {
@@ -70,9 +70,10 @@ public:
                        std::string inline_base_name;
 
                public:
-                       Loader(Step &);
-                       Loader(Step &, Collection &);
+                       Loader(Step &s): Loader(s, 0) { }
+                       Loader(Step &s, Collection &c): Loader(s, &c) { }
                private:
+                       Loader(Step &, Collection *);
                        void init();
 
                public: