mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-05 19:11:50 +00:00
format: reformat project
Signed-off-by: Vyacheslav Ivanov <islavaivanov76@gmail.com>
This commit is contained in:
parent
736cd175d5
commit
bbf33e8e4d
202 changed files with 7389 additions and 5609 deletions
|
|
@ -1,15 +1,16 @@
|
|||
#ifndef UTIL_OBJECTS_KEEPER_HPP_
|
||||
#define UTIL_OBJECTS_KEEPER_HPP_
|
||||
|
||||
#include <vector>
|
||||
#include <memory>
|
||||
#include <vector>
|
||||
|
||||
namespace util {
|
||||
/// @brief Keeps shared pointers alive until destruction
|
||||
class ObjectsKeeper {
|
||||
std::vector<std::shared_ptr<void>> ptrs;
|
||||
public:
|
||||
virtual ~ObjectsKeeper() {}
|
||||
virtual ~ObjectsKeeper() {
|
||||
}
|
||||
|
||||
virtual void keepAlive(std::shared_ptr<void> ptr) {
|
||||
ptrs.push_back(ptr);
|
||||
|
|
@ -17,4 +18,4 @@ namespace util {
|
|||
};
|
||||
}
|
||||
|
||||
#endif // UTIL_OBJECTS_KEEPER_HPP_
|
||||
#endif // UTIL_OBJECTS_KEEPER_HPP_
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue