From 0a4be9355c1083ec92b5fcd3f38a8cf82d4b6d4b Mon Sep 17 00:00:00 2001 From: alex Date: Mon, 2 Jun 1997 10:26:09 +0000 Subject: [PATCH] Eliminato parametro data git-svn-id: svn://10.65.10.50/trunk@4491 c028cbd2-c16b-5b4b-a496-9718f37d4682 --- cg/cg2101.cpp | 4 ++-- cg/cg2101.h | 2 +- cg/saldacon.cpp | 16 ++++++++-------- cg/saldacon.h | 8 ++++---- 4 files changed, 15 insertions(+), 15 deletions(-) diff --git a/cg/cg2101.cpp b/cg/cg2101.cpp index 04dacd161..79d20ebbd 100755 --- a/cg/cg2101.cpp +++ b/cg/cg2101.cpp @@ -64,9 +64,9 @@ int TMovimentoPN::read_mov_rows() } -int TMovimentoPN::read(TIsamop op, TReclock lockop, TDate& atdate) +int TMovimentoPN::read(TIsamop op, TReclock lockop) { - const int err = TRelation::read(op, lockop, atdate); + const int err = TRelation::read(op, lockop); if (err == NOERR) { _olddate = file().get("DATAREG"); // Memorizza data operazione per aggiornare i saldi diff --git a/cg/cg2101.h b/cg/cg2101.h index 9f2e31134..d1e82a0bf 100755 --- a/cg/cg2101.h +++ b/cg/cg2101.h @@ -37,7 +37,7 @@ public: virtual int first(TReclock lockop = _nolock) { return (file().first(lockop) || read_mov_rows()); } virtual int last(TReclock lockop = _nolock) { return (file().last(lockop) || read_mov_rows()); } virtual int skip(TRecnotype nrec, TReclock lockop = _nolock) { return (file().skip(nrec, lockop) || read_mov_rows()); } - virtual int read(TIsamop op = _isgteq, TReclock lockop = _nolock, TDate& atdate = (TDate&)botime); + virtual int read(TIsamop op = _isgteq, TReclock lockop = _nolock); virtual int write (bool force = TRUE, TDate& atdate = (TDate&)botime); virtual int rewrite(bool force = TRUE, TDate& atdate = (TDate&)botime); virtual int remove (TDate& atdate = (TDate&)botime); diff --git a/cg/saldacon.cpp b/cg/saldacon.cpp index 919eb27a0..f9989005e 100755 --- a/cg/saldacon.cpp +++ b/cg/saldacon.cpp @@ -75,9 +75,9 @@ int TTree_rectype::fill_array() } -int TTree_rectype::read(TBaseisamfile& f, word op, word lockop, TDate& date) +int TTree_rectype::read(TBaseisamfile& f, word op, word lockop) { - int err = TRectype::read(f, op, lockop, date); + int err = TRectype::read(f, op, lockop); if (err == NOERR) fill_array(); else @@ -95,25 +95,25 @@ int TTree_rectype::next(TBaseisamfile& f, word lockop) return err; } -int TTree_rectype::write(TBaseisamfile& f, TDate& date) const +int TTree_rectype::write(TBaseisamfile& f) const { - int err = TRectype::write(f, date); + int err = TRectype::write(f); if (err == NOERR) err = _recarr.write(); return err; } -int TTree_rectype::rewrite(TBaseisamfile& f, TDate& date) const +int TTree_rectype::rewrite(TBaseisamfile& f) const { - int err = TRectype::rewrite(f, date); + int err = TRectype::rewrite(f); if (err == NOERR) err = _recarr.rewrite(); return err; } -int TTree_rectype::remove(TBaseisamfile& f, TDate& date) const +int TTree_rectype::remove(TBaseisamfile& f) const { - int err = TRectype::remove(f, date); + int err = TRectype::remove(f); if (err == NOERR) err = _recarr.remove(); return err; diff --git a/cg/saldacon.h b/cg/saldacon.h index b35cc1630..7d6dd998e 100755 --- a/cg/saldacon.h +++ b/cg/saldacon.h @@ -26,11 +26,11 @@ protected: protected: // TRectype virtual TObject* dup() const; - virtual int read(TBaseisamfile& f, word op = _isequal, word lockop = _nolock, TDate& = (TDate&)botime); + virtual int read(TBaseisamfile& f, word op = _isequal, word lockop = _nolock); virtual int next(TBaseisamfile& f, word lockop = _nolock); - virtual int write(TBaseisamfile& f, TDate& atdate = (TDate&)botime) const; - virtual int rewrite(TBaseisamfile& f, TDate& atdate = (TDate&)botime) const; - virtual int remove(TBaseisamfile& f, TDate& atdate = (TDate&)botime) const; + virtual int write(TBaseisamfile& f) const; + virtual int rewrite(TBaseisamfile& f) const; + virtual int remove(TBaseisamfile& f) const; virtual void renum_key(const char* field, const char* val); const TRecord_array& rows_array() const { return _recarr; }