internal: Use using instead of #define to alias smart pointers (#10673)
This commit is contained in:
parent
8801770981
commit
0a47575c7f
1 changed files with 6 additions and 4 deletions
|
|
@ -2,9 +2,11 @@
|
||||||
|
|
||||||
#include <hyprutils/memory/WeakPtr.hpp>
|
#include <hyprutils/memory/WeakPtr.hpp>
|
||||||
|
|
||||||
//NOLINTNEXTLINE
|
|
||||||
using namespace Hyprutils::Memory;
|
using namespace Hyprutils::Memory;
|
||||||
|
|
||||||
#define SP Hyprutils::Memory::CSharedPointer
|
template <typename T>
|
||||||
#define WP Hyprutils::Memory::CWeakPointer
|
using SP = Hyprutils::Memory::CSharedPointer<T>;
|
||||||
#define UP Hyprutils::Memory::CUniquePointer
|
template <typename T>
|
||||||
|
using WP = Hyprutils::Memory::CWeakPointer<T>;
|
||||||
|
template <typename T>
|
||||||
|
using UP = Hyprutils::Memory::CUniquePointer<T>;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue