From b83d63030bf56c7e5951e3cf0f498e8da4fcee0e Mon Sep 17 00:00:00 2001 From: luca Date: Wed, 8 Oct 2008 12:37:38 +0000 Subject: [PATCH] Patch level :10.0 Files correlati : Ricompilazione Demo : [ ] Commento : Reso protetetto costruttore interno dei TCurrency git-svn-id: svn://10.65.10.50/trunk@17390 c028cbd2-c16b-5b4b-a496-9718f37d4682 --- include/currency.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/include/currency.h b/include/currency.h index 5a2f01e1a..58dcb3184 100755 --- a/include/currency.h +++ b/include/currency.h @@ -55,6 +55,7 @@ class TCurrency : public TSortable protected: virtual int compare(const TSortable& s) const; void copy(const TCurrency& cur); + TCurrency(bool price) : _price(price) { } // Internal use only public: static const TString& get_base_val(); @@ -115,7 +116,7 @@ public: void write(TRectype& rec, const char* field, const char *val = NULL, const char *exchange = NULL, const char* et = NULL, bool forceval = false) const; int decimals() const; - TCurrency(bool price = false) : _price(price) { } + TCurrency() : _price(false) {} TCurrency(const TCurrency& cur) { copy(cur); } TCurrency(const real& num, const char* val = "", const real& exchg = ZERO, exchange_type et = _exchange_undefined, bool price = false); TCurrency(const real& num, const TExchange& chg, bool price = false); @@ -127,10 +128,10 @@ class TPrice : public TCurrency public: const TPrice& operator=(const TPrice& cur) { copy(cur); return *this; } - TPrice() : TCurrency(TRUE) { } + TPrice() : TCurrency(true) { } TPrice(const TPrice& price) { copy(price); } TPrice(const real& num, const char* val = "", const real& exc = ZERO, exchange_type ext = _exchange_undefined) - : TCurrency(num, val, exc, ext, TRUE) { } + : TCurrency(num, val, exc, ext, true) { } virtual ~TPrice() { } };