From e206dc1cf625f28149c19eb4dfcbf495ef0efbb4 Mon Sep 17 00:00:00 2001 From: HampusM Date: Fri, 18 Feb 2022 19:31:03 +0100 Subject: refactor: improve options of all kinds --- src/app/stack.hpp | 2 +- src/app/stack.tpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src/app') diff --git a/src/app/stack.hpp b/src/app/stack.hpp index 11f7405..aec6d5e 100644 --- a/src/app/stack.hpp +++ b/src/app/stack.hpp @@ -15,7 +15,7 @@ public: * * @param capacity The capacity of the stack */ - explicit Stack(uint64_t capacity); + explicit Stack(const uint64_t &capacity); /** * Pushes a item onto the stack. diff --git a/src/app/stack.tpp b/src/app/stack.tpp index bcdafc0..263da67 100644 --- a/src/app/stack.tpp +++ b/src/app/stack.tpp @@ -6,7 +6,7 @@ #include template -Stack::Stack(uint64_t capacity) +Stack::Stack(const uint64_t &capacity) { _items.reserve(capacity); } -- cgit v1.2.3-18-g5258