mirror of
https://github.com/overte-org/overte.git
synced 2025-08-06 18:50:00 +02:00
Naming
This commit is contained in:
parent
0bd97ce40c
commit
eb5206f8e6
1 changed files with 4 additions and 4 deletions
|
@ -25,16 +25,16 @@
|
||||||
|
|
||||||
class Dependency {
|
class Dependency {
|
||||||
public:
|
public:
|
||||||
typedef std::function<void(Dependency* pointer)> DeleterFct;
|
typedef std::function<void(Dependency* pointer)> DeleterFunction;
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
virtual ~Dependency() {}
|
virtual ~Dependency() {}
|
||||||
virtual void customDeleter() {
|
virtual void customDeleter() {
|
||||||
_customDeleterFct(this);
|
_customDeleter(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
void setCustomDeleterFct(DeleterFct customDeleterFct) { _customDeleterFct = customDeleterFct; }
|
void setCustomDeleter(DeleterFunction customDeleter) { _customDeleter = customDeleter; }
|
||||||
DeleterFct _customDeleterFct = [](Dependency* pointer) { delete pointer; };
|
DeleterFunction _customDeleter = [](Dependency* pointer) { delete pointer; };
|
||||||
|
|
||||||
friend class DependencyManager;
|
friend class DependencyManager;
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue