diff --git a/cg/cg1700.cpp b/cg/cg1700.cpp index 4049cd488..620932b12 100755 --- a/cg/cg1700.cpp +++ b/cg/cg1700.cpp @@ -22,7 +22,6 @@ class CG1700_application : public TPrintapp { TRelation * _rel; TLocalisamfile * _clifo, * _pcon, * _nditte, * _anag, * _com; - TCursor * _cur; TMask * _msk; TParagraph_string * _descr_causale, * _descr_conto; TDate _data; @@ -279,8 +278,7 @@ bool CG1700_application::user_create() _rel = new TRelation (LF_CAUSALI); _rel->add(LF_RCAUSALI,"CODCAUS==CODCAUS",1); - _cur = new TCursor (_rel,"", 1); - add_cursor(_cur); + add_cursor(new TCursor (_rel,"", 1)); _com = new TLocalisamfile(LF_COMUNI); _pcon = new TLocalisamfile(LF_PCON); @@ -298,7 +296,6 @@ bool CG1700_application::user_create() bool CG1700_application::user_destroy() { delete _msk; - delete _cur; delete _rel; delete _clifo; delete _com;