Skip to content
Snippets Groups Projects
Commit 0894ab63 authored by Kristof Szabados's avatar Kristof Szabados
Browse files

in copy constructors it is also a good idea to copy the data of base classes.


Signed-off-by: default avatarKristof Szabados <Kristof.Szabados@ericsson.com>
parent e19daf4e
No related branches found
No related tags found
No related merge requests found
...@@ -243,6 +243,7 @@ namespace Ttcn { ...@@ -243,6 +243,7 @@ namespace Ttcn {
// ================================= // =================================
IndexedTemplate::IndexedTemplate(const IndexedTemplate& p) IndexedTemplate::IndexedTemplate(const IndexedTemplate& p)
: Node(p), Location(p)
{ {
index = p.index->clone(); index = p.index->clone();
temp = p.temp->clone(); temp = p.temp->clone();
...@@ -357,6 +358,7 @@ namespace Ttcn { ...@@ -357,6 +358,7 @@ namespace Ttcn {
} }
NamedTemplate::NamedTemplate(const NamedTemplate& p) NamedTemplate::NamedTemplate(const NamedTemplate& p)
: Node(p), Location(p)
{ {
name = p.name->clone(); name = p.name->clone();
temp = p.temp->clone(); temp = p.temp->clone();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment