]> git.tdb.fi Git - libs/gl.git/commitdiff
Explicitly call base class copy constructor for expressions
authorMikko Rasa <tdb@tdb.fi>
Mon, 1 Mar 2021 15:37:31 +0000 (17:37 +0200)
committerMikko Rasa <tdb@tdb.fi>
Mon, 1 Mar 2021 19:06:08 +0000 (21:06 +0200)
source/glsl/syntax.cpp

index 55dc94a77ff3552dbc449ade8da8659e3c1b9880..90e26c39a37c24d663dc8846bb172f65007ec694 100644 (file)
@@ -107,6 +107,7 @@ VariableReference::VariableReference():
 { }
 
 VariableReference::VariableReference(const VariableReference &other):
+       Expression(other),
        name(other.name),
        declaration(0)
 { }
@@ -122,6 +123,7 @@ InterfaceBlockReference::InterfaceBlockReference():
 { }
 
 InterfaceBlockReference::InterfaceBlockReference(const InterfaceBlockReference &other):
+       Expression(other),
        name(other.name),
        declaration(0)
 { }
@@ -137,6 +139,7 @@ MemberAccess::MemberAccess():
 { }
 
 MemberAccess::MemberAccess(const MemberAccess &other):
+       Expression(other),
        left(other.left),
        member(other.member),
        declaration(0)
@@ -170,6 +173,7 @@ Assignment::Assignment():
 { }
 
 Assignment::Assignment(const Assignment &other):
+       BinaryExpression(other),
        self_referencing(other.self_referencing),
        target_declaration(0)
 { }
@@ -186,6 +190,7 @@ FunctionCall::FunctionCall():
 { }
 
 FunctionCall::FunctionCall(const FunctionCall &other):
+       Expression(other),
        name(other.name),
        constructor(other.constructor),
        arguments(other.arguments),
@@ -247,6 +252,7 @@ VariableDeclaration::VariableDeclaration():
 { }
 
 VariableDeclaration::VariableDeclaration(const VariableDeclaration &other):
+       Statement(other),
        layout(other.layout),
        constant(other.constant),
        sampling(other.sampling),
@@ -282,6 +288,7 @@ InterfaceBlock::InterfaceBlock():
 }
 
 InterfaceBlock::InterfaceBlock(const InterfaceBlock &other):
+       Statement(other),
        interface(other.interface),
        name(other.name),
        members(other.members),
@@ -307,6 +314,7 @@ FunctionDeclaration::FunctionDeclaration():
 { }
 
 FunctionDeclaration::FunctionDeclaration(const FunctionDeclaration &other):
+       Statement(other),
        return_type(other.return_type),
        name(other.name),
        parameters(other.parameters),