diff --git a/include/form.h b/include/form.h index edfb96062..b4e8d5fe4 100755 --- a/include/form.h +++ b/include/form.h @@ -637,7 +637,7 @@ public: virtual TForm_item* create_item(const TString& typ); // @cmember Ritorna il numero di campi da stampare word fields() const - { return word(_item.items()); } + { return _item.items(); } // @cmember Ritorna il numero di campi stampabili (0 se non e' COLUMNWISE) word columns() { tab(0); return _nfld; } @@ -841,7 +841,7 @@ public: { return _effective_height; } // @cmember Imposta l'altezza effettiva del campo virtual void set_effective_height(int val) - { _effective_height=short(val); } + { _effective_height=val; } // @cmember Formatta la stringa
. Funzione che per default non fa nulla.
// Ridefinita solo per TForm_number e TForm_string.
virtual void apply_format(TString & s) const {}
diff --git a/include/isam.cpp b/include/isam.cpp
index 37c3bf454..52fc4d1e4 100755
--- a/include/isam.cpp
+++ b/include/isam.cpp
@@ -1452,8 +1452,8 @@ int TIsamtempfile::open(
filename.ext("dbf");
if (err == -60)
{
- if (access(filename,0)) // check for existence
- fatal_box("Apertura file %s : errore n. %d. File non esistente.",(const char*) filename,err);
+ if (!filename.exist())
+ fatal_box("Apertura file %s : errore n. %d. File non esistente.",(const char*)filename,err);
else
fatal_box("Apertura file %s : errore n. %d. File aperto in uso esclusivo da un'altra applicazione.",(const char*)filename,err);
}
diff --git a/include/mov.h b/include/mov.h
index c1b1f29f2..63c0d75d1 100755
--- a/include/mov.h
+++ b/include/mov.h
@@ -21,7 +21,6 @@
#define MOV_REG "REG"
#define MOV_PROTIVA "PROTIVA"
#define MOV_UPROTIVA "UPROTIVA"
-#define MOV_MESELIQ "MESELIQ"
#define MOV_CODVAL "CODVAL"
#define MOV_CAMBIO "CAMBIO"
#define MOV_CONTROEURO "CONTROEURO"
diff --git a/include/os_win32.cpp b/include/os_win32.cpp
index a015eb8aa..1958fc217 100755
--- a/include/os_win32.cpp
+++ b/include/os_win32.cpp
@@ -3,6 +3,7 @@
#include caratteri da sinistra
{
- _spark.strncpy(_str, count);
- return _spark;
+ spark.strncpy(_str, count);
+ return spark;
}
// Certified 99%
@@ -494,8 +494,8 @@ const TString& TString::right(
{
int from = len()-count;
if (from < 0) from = 0;
- _spark = _str + from;
- return _spark;
+ spark = _str + from;
+ return spark;
}
@@ -522,8 +522,8 @@ const TString& TString::mid(
if (from > l) from = l;
if (count < 0 || from+count>l)
count = l-from;
- _spark.strncpy(&_str[from], count);
- return _spark;
+ spark.strncpy(&_str[from], count);
+ return spark;
}
@@ -738,9 +738,9 @@ TString& TString::right_just(
{
if (n < 0) n = size();
trim();
- _spark = _str;
+ spark = _str;
fill(c, n);
- overwrite(_spark, n-_spark.len());
+ overwrite(spark, n-spark.len());
return *this;
}
@@ -760,10 +760,10 @@ TString& TString::center_just(
{
if (n < 0) n = size();
trim();
- _spark = _str;
+ spark = _str;
fill(c, n);
- const int p = (n-_spark.len()) >> 1;
- overwrite(_spark, p);
+ const int p = (n-spark.len()) >> 1;
+ overwrite(spark, p);
return *this;
}
@@ -783,9 +783,9 @@ TString& TString::left_just(
{
if (n < 0) n = size();
trim();
- _spark = _str;
+ spark = _str;
fill(c, n);
- overwrite(_spark, 0);
+ overwrite(spark, 0);
return *this;
}
@@ -815,7 +815,7 @@ TString& TString::picture(
return *this;
}
-// Certified 90% (_spark size limited)
+// Certified 90% (spark size limited)
// @doc EXTERNAL
// @mfunc Manda un output formattato alla stringa oggetto
@@ -828,12 +828,12 @@ TString& TString::format(
{
va_list pars;
va_start(pars, fmt);
- const int tot = vsprintf(_spark.get_buffer(), fmt, pars);
+ const int tot = vsprintf(spark.get_buffer(), fmt, pars);
va_end(pars);
- CHECK(tot >= 0 && tot < _spark.size(), "Ue'! Quanto scrivi?");
+ CHECK(tot >= 0 && tot < spark.size(), "Ue'! Quanto scrivi?");
if (tot > size()) resize(tot, FALSE);
- strcpy(_str, _spark);
+ strcpy(_str, spark);
return *this;
}
@@ -948,9 +948,9 @@ TString& TString::insert(
{
const int l = strlen(s);
make_room(l);
- mid(pos); // Scrivi in _spark la stringa da pos in poi
+ mid(pos); // Scrivi in spark la stringa da pos in poi
overwrite(s, pos); // Aggiungi s
- strcpy(&_str[pos+l], _spark); // Aggiungi _spark
+ strcpy(&_str[pos+l], spark); // Aggiungi spark
}
return *this;
}
@@ -1022,7 +1022,7 @@ TString& TFixed_string::format(
// @comm Funziona come la funzione "sprintf" standard del C e ritorna la
// stringa formattata con i parametri passati.
- //