summaryrefslogtreecommitdiff
path: root/src/company_func.h
diff options
context:
space:
mode:
authorQuipyowert2 <38995150+Quipyowert2@users.noreply.github.com>2020-02-16 17:57:22 -0800
committerNiels Martin Hansen <nielsm@indvikleren.dk>2020-02-17 09:15:28 +0100
commit4552b17691fa7c4f1fdb4ca7652ca48278a68fec (patch)
treedbe1ca9db8d1bfe2a23849ad0082de39fb045b81 /src/company_func.h
parent0c80ae5288a80a012f6c89de569ce8447832fbb3 (diff)
downloadopenttd-4552b17691fa7c4f1fdb4ca7652ca48278a68fec.tar.xz
Codechange: Avoid copying function parameters by using const references
Diffstat (limited to 'src/company_func.h')
-rw-r--r--src/company_func.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/company_func.h b/src/company_func.h
index cec611004..01f585910 100644
--- a/src/company_func.h
+++ b/src/company_func.h
@@ -25,8 +25,8 @@ void CompanyAdminBankrupt(CompanyID company_id);
void UpdateLandscapingLimits();
bool CheckCompanyHasMoney(CommandCost &cost);
-void SubtractMoneyFromCompany(CommandCost cost);
-void SubtractMoneyFromCompanyFract(CompanyID company, CommandCost cost);
+void SubtractMoneyFromCompany(const CommandCost& cost);
+void SubtractMoneyFromCompanyFract(CompanyID company, const CommandCost& cost);
CommandCost CheckOwnership(Owner owner, TileIndex tile = 0);
CommandCost CheckTileOwnership(TileIndex tile);