style: resolve -Wreorder (#2950)

Co-authored-by: realstealthninja <68815218+realstealthninja@users.noreply.github.com>
This commit is contained in:
Piotr Idzik
2025-08-15 06:40:28 +02:00
committed by GitHub
parent 13306be79f
commit 6568ab983d
3 changed files with 5 additions and 5 deletions

View File

@@ -25,7 +25,7 @@ class Stack {
*
* @param size Maximum size of the stack
*/
Stack(int size) : stackSize(size), stackIndex(-1), stack(new T[size]) {}
Stack(int size) : stack(new T[size]), stackSize(size), stackIndex(-1) {}
/**
* @brief Checks if the stack is full