Patch level : 12.0 nopatch

Files correlati     :
Commento:
Modificata get_mask in _get_mask
This commit is contained in:
Alessandro Bonazzi 2022-10-03 10:15:34 +02:00
parent 091996c284
commit 015aba2974
6 changed files with 6 additions and 6 deletions

View File

@ -950,7 +950,7 @@ private:
int find_art(TSheet_field& s,const TString& art) const; int find_art(TSheet_field& s,const TString& art) const;
protected: protected:
virtual TMask* get_mask (int mode) {return _msk; } virtual TMask* _get_mask (int mode) {return _msk; }
virtual TRelation* get_relation() const {return _rel;} virtual TRelation* get_relation() const {return _rel;}
virtual bool user_create(); virtual bool user_create();

View File

@ -100,7 +100,7 @@ protected:
virtual int write(const TMask& m); virtual int write(const TMask& m);
virtual int rewrite(const TMask& m); virtual int rewrite(const TMask& m);
virtual bool remove(); virtual bool remove();
virtual TMask* get_mask(int mode) { return _mask; } virtual TMask* _get_mask(int mode) { return _mask; }
virtual bool changing_mask(int mode) { return false; } virtual bool changing_mask(int mode) { return false; }
public: public:

View File

@ -8,6 +8,7 @@
#include <sheet.h> #include <sheet.h>
#include <utility.h> #include <utility.h>
#include "../cg/cglib.h"
#include "../cg/cgsaldac.h" #include "../cg/cgsaldac.h"
#include "lv4.h" #include "lv4.h"
@ -63,7 +64,7 @@ const TCausale& TCausali_cache::causale(const char tipocf, tipo_movimento tm)
{ {
// Metodo bastardo per evitare TToken_string temporanee "a randa" // Metodo bastardo per evitare TToken_string temporanee "a randa"
// creo chiave a lunghezza fissa TIPOCF+TIPOMOV+ANNO = C12010 // creo chiave a lunghezza fissa TIPOCF+TIPOMOV+ANNO = C12010
const char key[4] = { tipocf, '0'+tm, '\0' }; const char key[4] = { tipocf, '0'+(char) tm, '\0' };
return *(const TCausale*)objptr(key); return *(const TCausale*)objptr(key);
} }

View File

@ -18,7 +18,6 @@
#include "../ce/cespi.h" #include "../ce/cespi.h"
#include "../ce/salce.h" #include "../ce/salce.h"
#include "../cg/cglib.h" #include "../cg/cglib.h"
#include "lv4.h" #include "lv4.h"
#include "lv4100.h" #include "lv4100.h"
#include "lv4500a.h" #include "lv4500a.h"

View File

@ -42,7 +42,7 @@ class TCGRiclass_application : public TRelation_application
// @access Protected Member // @access Protected Member
protected: protected:
virtual TMask* get_mask(int mode = MODE_QUERY) { CHECK(_msk, "Null mask"); return _msk; } virtual TMask* _get_mask(int mode = MODE_QUERY) { CHECK(_msk, "Null mask"); return _msk; }
// @cmember Indica se la futura <mf Tab_application::get_mask> ritornera' una maschera diversa // @cmember Indica se la futura <mf Tab_application::get_mask> ritornera' una maschera diversa
// dalla corrente. // dalla corrente.
virtual bool changing_mask(int mode) { return false; } virtual bool changing_mask(int mode) { return false; }

View File

@ -76,7 +76,7 @@ bool TCOGECO_multirel_app::user_create()
if (ok) if (ok)
{ {
TConfig config(CONFIG_DITTA); TConfig config(CONFIG_DITTA);
TMask & m = *get_mask(); TMask & m = *get_mask(MODE_QUERY);
set_search_field(F_CODTAB); set_search_field(F_CODTAB);
} }