From: Manuel Nickschas Date: Tue, 1 Nov 2016 16:23:44 +0000 (+0100) Subject: common: Add Deferred{Unique|Shared}Ptr and helpers X-Git-Tag: travis-deploy-test~270 X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=commitdiff_plain;h=46f20e19a343ad0fa17dde6c32f17e60fc682c9b;hp=46f20e19a343ad0fa17dde6c32f17e60fc682c9b common: Add Deferred{Unique|Shared}Ptr and helpers This commit adds smart pointers for holding QObject derivatives. On destruction, they will deleteLater() the object they're holding. This is the recommended and safe way for deleting QObject instances. Be careful with using such smart pointers outside of the scope of their parent, for objects that are owned. The parent will delete its children, and any outside reference still held by a smart pointer will lead to a double free! ---