diff options
-rw-r--r-- | Source/Internal/timer.cpp | 4 | ||||
-rw-r--r-- | Source/Memory/stack_allocator.cpp | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/Source/Internal/timer.cpp b/Source/Internal/timer.cpp index 91848e1c..2e6f84ee 100644 --- a/Source/Internal/timer.cpp +++ b/Source/Internal/timer.cpp @@ -185,7 +185,7 @@ Timer::Timer(): last_tick(0), wall_time(0) { - for(unsigned long & i : frame){ - i=0; + for (auto& i : frame) { + i = 0; } } diff --git a/Source/Memory/stack_allocator.cpp b/Source/Memory/stack_allocator.cpp index 4e07c452..1a46ffc4 100644 --- a/Source/Memory/stack_allocator.cpp +++ b/Source/Memory/stack_allocator.cpp @@ -101,7 +101,7 @@ uintptr_t StackAllocator::TopBlockSize() { } void StackAllocator::Init(void* p_mem, size_t p_size) { - for (unsigned long & stack_block_pt : stack_block_pts) { + for (auto & stack_block_pt : stack_block_pts) { stack_block_pt = 0; } mem = p_mem; @@ -110,7 +110,7 @@ void StackAllocator::Init(void* p_mem, size_t p_size) { } void StackAllocator::Dispose() { - for (unsigned long & stack_block_pt : stack_block_pts) { + for (auto & stack_block_pt : stack_block_pts) { stack_block_pt = 0; } mem = 0; |