format: reformat project
Signed-off-by: Vyacheslav Ivanov <islavaivanov76@gmail.com>
This commit is contained in:
@@ -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_
|
||||
|
||||
Reference in New Issue
Block a user