From 1322627754578721637fcd25c512ae9ce77836a3 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Mon, 17 Jul 2017 00:13:39 +0300 Subject: Add missing const in animation.cpp --- src/resources/animation/animation.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/resources/animation/animation.cpp b/src/resources/animation/animation.cpp index 3b066da15..3b9619009 100644 --- a/src/resources/animation/animation.cpp +++ b/src/resources/animation/animation.cpp @@ -59,25 +59,25 @@ void Animation::addTerminator(const int rand) noexcept2 void Animation::addJump(const std::string &name, const int rand) noexcept2 { - Frame frame = { nullptr, 0, 0, 0, rand, FrameType::JUMP, name }; + const Frame frame = { nullptr, 0, 0, 0, rand, FrameType::JUMP, name }; mFrames.push_back(frame); } void Animation::addLabel(const std::string &name) noexcept2 { - Frame frame = { nullptr, 0, 0, 0, 100, FrameType::LABEL, name }; + const Frame frame = { nullptr, 0, 0, 0, 100, FrameType::LABEL, name }; mFrames.push_back(frame); } void Animation::addGoto(const std::string &name, const int rand) noexcept2 { - Frame frame = { nullptr, 0, 0, 0, rand, FrameType::GOTO, name }; + const Frame frame = { nullptr, 0, 0, 0, rand, FrameType::GOTO, name }; mFrames.push_back(frame); } void Animation::addPause(const int delay, const int rand) noexcept2 { - Frame frame = { nullptr, delay, 0, 0, rand, FrameType::PAUSE, "" }; + const Frame frame = { nullptr, delay, 0, 0, rand, FrameType::PAUSE, "" }; mFrames.push_back(frame); } -- cgit v1.2.3-60-g2f50