aboutsummaryrefslogtreecommitdiff
path: root/model.cpp
diff options
context:
space:
mode:
authorTeddy <[email protected]>2013-08-19 00:20:11 +0800
committerTeddy <[email protected]>2013-08-19 00:20:11 +0800
commit024c83a13a256f7f171732189a154c74c0ce24ad (patch)
tree4d20003490b6430e3abcf669cbe473be3b72a35f /model.cpp
parent204f338bbd0e287184e4cfd6ea33459dbaf4350f (diff)
fix a severe bug : copy-constructor expected in EvalObjHEADmaster
Diffstat (limited to 'model.cpp')
-rw-r--r--model.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/model.cpp b/model.cpp
index e454c72..6fd41b3 100644
--- a/model.cpp
+++ b/model.cpp
@@ -27,6 +27,11 @@ bool FrameObj::is_parse_bracket() {
return ftype & CLS_PAR_BRA;
}
+EvalObj::EvalObj(const EvalObj &src) :
+FrameObj(CLS_EVAL_OBJ), otype(src.otype) {
+ gc_rec = gc.join(this);
+}
+
EvalObj::EvalObj(int _otype) :
FrameObj(CLS_EVAL_OBJ), otype(_otype) {
/** To notify GC when an EvalObj is constructed */