]> git.sesse.net Git - movit/commitdiff
Another NULL initializer, mostly to get Coverity to be quiet.
authorSteinar H. Gunderson <sgunderson@bigfoot.com>
Sat, 19 Jan 2013 22:58:51 +0000 (23:58 +0100)
committerSteinar H. Gunderson <sgunderson@bigfoot.com>
Sat, 19 Jan 2013 22:58:51 +0000 (23:58 +0100)
effect_chain_test.cpp

index e78a140270a2f81265959f492200c7edf7746a0d..75491030b05b66f27fef22a17ca8e5f7ccf66dcd 100644 (file)
@@ -102,7 +102,7 @@ public:
 template<class T>
 class RewritingEffect : public Effect {
 public:
 template<class T>
 class RewritingEffect : public Effect {
 public:
-       RewritingEffect() : effect(new T()) {}
+       RewritingEffect() : effect(new T()), replaced_node(NULL) {}
        virtual std::string effect_type_id() const { return "RewritingEffect[" + effect->effect_type_id() + "]"; }
        std::string output_fragment_shader() { EXPECT_TRUE(false); return read_file("identity.frag"); }
        virtual void rewrite_graph(EffectChain *graph, Node *self) {
        virtual std::string effect_type_id() const { return "RewritingEffect[" + effect->effect_type_id() + "]"; }
        std::string output_fragment_shader() { EXPECT_TRUE(false); return read_file("identity.frag"); }
        virtual void rewrite_graph(EffectChain *graph, Node *self) {