Copy constructor for LineInfo.
This commit is contained in:
parent
9231ad51a4
commit
bb2e6782fa
|
|
@ -27,6 +27,11 @@ LineInfo::LineInfo()
|
|||
{
|
||||
}
|
||||
|
||||
LineInfo::LineInfo(const LineInfo&that) :
|
||||
file_(that.file_), lineno_(that.lineno_)
|
||||
{
|
||||
}
|
||||
|
||||
LineInfo::~LineInfo()
|
||||
{
|
||||
}
|
||||
|
|
|
|||
|
|
@ -36,6 +36,7 @@ using namespace std;
|
|||
class LineInfo {
|
||||
public:
|
||||
LineInfo();
|
||||
LineInfo(const LineInfo&that);
|
||||
virtual ~LineInfo();
|
||||
|
||||
// Get a fully formatted file/lineno
|
||||
|
|
|
|||
|
|
@ -311,6 +311,7 @@ ExpConditional::else_t::else_t(Expression*cond, std::list<Expression*>*tru)
|
|||
}
|
||||
|
||||
ExpConditional::else_t::else_t(const else_t&other)
|
||||
: LineInfo(other)
|
||||
{
|
||||
cond_ = other.cond_->clone();
|
||||
for(std::list<Expression*>::const_iterator it = other.true_clause_.begin();
|
||||
|
|
|
|||
Loading…
Reference in New Issue