mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 18:41:51 +00:00
It's better to use '= default;' syntax instead of empty constructor and destructor body. Using '= default;' can help the compiler generate more optimal code. Reported by: PVS-Studio Signed-off-by: Vyacheslav Ivanov <islavaivanov76@gmail.com>
11 lines
240 B
C++
11 lines
240 B
C++
#include "Assets.hpp"
|
|
|
|
Assets::~Assets() = default;
|
|
|
|
const std::vector<TextureAnimation>& Assets::getAnimations() {
|
|
return animations;
|
|
}
|
|
|
|
void Assets::store(const TextureAnimation& animation) {
|
|
animations.emplace_back(animation);
|
|
}
|