aboutsummaryrefslogtreecommitdiff
path: root/src/app
diff options
context:
space:
mode:
Diffstat (limited to 'src/app')
-rw-r--r--src/app/stack.hpp2
-rw-r--r--src/app/stack.tpp2
2 files changed, 2 insertions, 2 deletions
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 <stdexcept>
template <typename Item>
-Stack<Item>::Stack(uint64_t capacity)
+Stack<Item>::Stack(const uint64_t &capacity)
{
_items.reserve(capacity);
}