Fix reference to undefined value (valgrind)

This commit is contained in:
Cary R 2016-03-24 23:41:34 -07:00
parent fb77cc4000
commit b5324c7ba2
2 changed files with 4 additions and 4 deletions

View File

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 2011-2014 Stephen Williams (steve@icarus.com) * Copyright (c) 2011-2016 Stephen Williams (steve@icarus.com)
* Copyright CERN 2013 / Stephen Williams (steve@icarus.com) * Copyright CERN 2013 / Stephen Williams (steve@icarus.com)
* *
* This source code is free software; you can redistribute it * This source code is free software; you can redistribute it
@ -46,7 +46,7 @@ ScopeBase::ScopeBase(const ActiveScope&ref)
use_subprograms_(ref.use_subprograms_), cur_subprograms_(ref.cur_subprograms_), use_subprograms_(ref.use_subprograms_), cur_subprograms_(ref.cur_subprograms_),
scopes_(ref.scopes_), use_enums_(ref.use_enums_), scopes_(ref.scopes_), use_enums_(ref.use_enums_),
initializers_(ref.initializers_), finalizers_(ref.finalizers_), initializers_(ref.initializers_), finalizers_(ref.finalizers_),
name_(ref.name_) package_header_(ref.package_header_), name_(ref.name_)
{ {
} }

View File

@ -1,7 +1,7 @@
#ifndef IVL_scope_H #ifndef IVL_scope_H
#define IVL_scope_H #define IVL_scope_H
/* /*
* Copyright (c) 2011-2014 Stephen Williams (steve@icarus.com) * Copyright (c) 2011-2016 Stephen Williams (steve@icarus.com)
* Copyright CERN 2013 / Stephen Williams (steve@icarus.com) * Copyright CERN 2013 / Stephen Williams (steve@icarus.com)
* *
* This source code is free software; you can redistribute it * This source code is free software; you can redistribute it
@ -51,7 +51,7 @@ struct delete_pair_second{
class ScopeBase { class ScopeBase {
public: public:
ScopeBase() { } ScopeBase() : package_header_(0) { }
explicit ScopeBase(const ActiveScope&ref); explicit ScopeBase(const ActiveScope&ref);
virtual ~ScopeBase() =0; virtual ~ScopeBase() =0;