diff options
author | terkhen <terkhen@openttd.org> | 2010-07-10 19:59:31 +0000 |
---|---|---|
committer | terkhen <terkhen@openttd.org> | 2010-07-10 19:59:31 +0000 |
commit | 5eb5ddbf313408dd553d80caae44bb0abfe09eaf (patch) | |
tree | 1ae9a9f325ac9e93cbf72bb66368281d2561e1db /src | |
parent | 08d4fb21f550f7ce6a2dbb4a9309ab3f04520243 (diff) | |
download | openttd-5eb5ddbf313408dd553d80caae44bb0abfe09eaf.tar.xz |
(svn r20112) -Codechange: Prevent implicit use of CommandCost constructors.
Diffstat (limited to 'src')
-rw-r--r-- | src/command_type.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/command_type.h b/src/command_type.h index 240c9f615..19132a27f 100644 --- a/src/command_type.h +++ b/src/command_type.h @@ -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 |