diff options
Diffstat (limited to 'src/command_type.h')
-rw-r--r-- | src/command_type.h | 17 |
1 files changed, 4 insertions, 13 deletions
diff --git a/src/command_type.h b/src/command_type.h index a02ac750f..100a96bc9 100644 --- a/src/command_type.h +++ b/src/command_type.h @@ -50,34 +50,25 @@ public: */ CommandCost(ExpensesType ex_t, Money cst) : expense_type(ex_t), cost(cst), message(INVALID_STRING_ID), success(true) {} - /** - * Adds the cost of the given command return value to this cost. - * Also takes a possible error message when it is set. - * @param ret the command to add the cost of. - * @return this class. - */ - CommandCost AddCost(CommandCost ret); /** * Adds the given cost to the cost of the command. * @param cost the cost to add - * @return this class. */ - CommandCost AddCost(Money cost) + void AddCost(Money cost) { this->cost += cost; - return *this; } + void AddCost(CommandCost ret); + /** * Multiplies the cost of the command by the given factor. * @param factor factor to multiply the costs with - * @return this class */ - CommandCost MultiplyCost(int factor) + void MultiplyCost(int factor) { this->cost *= factor; - return *this; } /** |