Commit 3080e9f6 authored by Tusooa Zhu's avatar Tusooa Zhu 🔼

Make KisSharedDescendent::pointerOf() return a pointer

parent 8bd998d9
......@@ -60,7 +60,7 @@ public:
constexpr static KisSharedDescendent &of(U x) { return *(new KisSharedDescendent<T>(std::move(x))); }
template<typename U>
constexpr static KisSharedDescendent *pointerOf(U x) { return *(new KisSharedDescendent<T>(std::move(x))); }
constexpr static KisSharedDescendent *pointerOf(U x) { return new KisSharedDescendent<T>(std::move(x)); }
};
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment