Changeset - r8290:b32f411ab7cc
[Not reviewed]
master
0 1 0
peter1138 - 16 years ago 2008-01-14 20:52:43
peter1138@openttd.org
(svn r11854) -Fix (r11848): Nightly build farm showed up more compiler warnings... c++ is fun
1 file changed with 4 insertions and 7 deletions:
0 comments (0 inline, 0 general)
src/widgets/dropdown_type.h
Show inline comments
 
@@ -15,6 +15,8 @@ public:
 
	int result;  ///< Result code to return to window on selection
 
	bool masked; ///< Masked and unselectable item
 

	
 
	DropDownListItem(int result, bool masked) : result(result), masked(masked) {}
 
	virtual ~DropDownListItem() {}
 
	virtual StringID String() const;
 
};
 

	
 
@@ -25,12 +27,7 @@ class DropDownListStringItem : public Dr
 
public:
 
	StringID string; ///< String ID of item
 

	
 
	DropDownListStringItem(StringID string, uint result, bool masked)
 
	{
 
		this->string = string;
 
		this->result = result;
 
		this->masked = masked;
 
	}
 
	DropDownListStringItem(StringID string, int result, bool masked) : DropDownListItem(result, masked), string(string) {}
 

	
 
	StringID String() const;
 
};
 
@@ -42,7 +39,7 @@ class DropDownListParamStringItem : publ
 
public:
 
	uint64 decode_params[10]; ///< Parameters of the string
 

	
 
	DropDownListParamStringItem(StringID string, uint result, bool masked) : DropDownListStringItem(string, result, masked) {}
 
	DropDownListParamStringItem(StringID string, int result, bool masked) : DropDownListStringItem(string, result, masked) {}
 

	
 
	StringID String() const;
 
	void SetParam(uint index, uint64 value) { decode_params[index] = value; }
0 comments (0 inline, 0 general)