Commit 83c6168f authored by Tusooa Zhu's avatar Tusooa Zhu 🔼 Committed by Blackbeard (alberto flores)

Make KisSharedDescendent::pointerOf() return a pointer

parent f4252d3b
......@@ -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