diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-05-17 00:17:13 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-05-17 00:17:13 +0300 |
commit | 26f2c689298bb2077000b81ff3fe14328a89feb8 (patch) | |
tree | 2821e64165ca0ee2b7f18fb8ec3f53bf1f52a0a7 /src/resources/mstack.h | |
parent | e528b472ec803ecdec29e9e19c037c83adf30c1f (diff) | |
download | manaplus-26f2c689298bb2077000b81ff3fe14328a89feb8.tar.gz manaplus-26f2c689298bb2077000b81ff3fe14328a89feb8.tar.bz2 manaplus-26f2c689298bb2077000b81ff3fe14328a89feb8.tar.xz manaplus-26f2c689298bb2077000b81ff3fe14328a89feb8.zip |
Fix code style.
Diffstat (limited to 'src/resources/mstack.h')
-rw-r--r-- | src/resources/mstack.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/resources/mstack.h b/src/resources/mstack.h index 3e7c28b80..c7c78a748 100644 --- a/src/resources/mstack.h +++ b/src/resources/mstack.h @@ -28,7 +28,7 @@ template<typename T> struct MStack final { - MStack(const size_t maxSize) : + explicit MStack(const size_t maxSize) : mStack(new T[maxSize]), mMaxSize(maxSize), mPointer(mStack - 1), @@ -42,6 +42,8 @@ struct MStack final delete [] mStack; } + A_DELETE_COPY(MStack) + T &push() { if (mPointer == mEndPointer) |