Changeset - r15453:7746ca5c18f5
[Not reviewed]
master
0 1 0
terkhen - 14 years ago 2010-07-10 19:59:31
terkhen@openttd.org
(svn r20112) -Codechange: Prevent implicit use of CommandCost constructors.
1 file changed with 2 insertions and 2 deletions:
0 comments (0 inline, 0 general)
src/command_type.h
Show inline comments
 
@@ -35,13 +35,13 @@ public:
 
	/**
 
	 * Creates a command return value the is failed with the given message
 
	 */
 
	CommandCost(StringID msg) : expense_type(INVALID_EXPENSES), cost(0), message(msg), success(false) {}
 
	explicit CommandCost(StringID msg) : expense_type(INVALID_EXPENSES), cost(0), message(msg), success(false) {}
 

	
 
	/**
 
	 * Creates a command cost with given expense type and start cost of 0
 
	 * @param ex_t the expense type
 
	 */
 
	CommandCost(ExpensesType ex_t) : expense_type(ex_t), cost(0), message(INVALID_STRING_ID), success(true) {}
 
	explicit CommandCost(ExpensesType ex_t) : expense_type(ex_t), cost(0), message(INVALID_STRING_ID), success(true) {}
 

	
 
	/**
 
	 * Creates a command return value with the given start cost and expense type
0 comments (0 inline, 0 general)