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
This commit is contained in:
		
							parent
							
								
									cda1f3c63a
								
							
						
					
					
						commit
						b83d63030b
					
				@ -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() { }
 | 
			
		||||
};                                               
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user