From 5cd0da4ad1c8ed8557eb430dbdda18b92ac06192 Mon Sep 17 00:00:00 2001 From: guy Date: Tue, 24 Feb 2015 08:27:41 +0000 Subject: [PATCH] =?UTF-8?q?Aggiunte=20piccole=20funzionalit=C3=A0=20utiliz?= =?UTF-8?q?zate=20da=20C.U.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: svn://10.65.10.50/branches/R_10_00@23038 c028cbd2-c16b-5b4b-a496-9718f37d4682 --- fe/felib.cpp | 9 ++++++--- fe/felib.h | 1 + 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/fe/felib.cpp b/fe/felib.cpp index d612389e2..43b946b84 100644 --- a/fe/felib.cpp +++ b/fe/felib.cpp @@ -219,14 +219,17 @@ void TAnagrafica::build_ind_res(const TRectype& rec, const char* ind, const char const TString& TAnagrafica::cognome() const { - TString80 c = _ragsoc.left(30); - return get_tmp_string() = c.trim(); + TString& c = get_tmp_string(); + c = _ragsoc.left(30); + return c.trim(); } const TString& TAnagrafica::nome() const { CHECK(fisica(), "Non chiedere nome giuridico!"); - return _ragsoc.mid(30,20); + TString& c = get_tmp_string(); + c = _ragsoc.mid(30,20); + return c.trim(); } bool TAnagrafica::italiano() const diff --git a/fe/felib.h b/fe/felib.h index d83fc1a80..06d239837 100644 --- a/fe/felib.h +++ b/fe/felib.h @@ -52,6 +52,7 @@ public: const TString& comune_nascita() const; const TString& provincia_nascita() const; + const TString& codice_comune_residenza() const { return estero() ? EMPTY_STRING : _com_res; } const TString& comune_residenza() const; const TString& provincia_residenza() const; const TString& localita_residenza() const { return _loc_res; }