[Development] Setters: Clarifying the ownership

Thiago Macieira thiago.macieira at intel.com
Fri Jan 19 17:57:21 CET 2018


On sexta-feira, 19 de janeiro de 2018 08:26:21 PST Philippe wrote:
> +20 years ago, the (good) Taligent crossplatform project, in its guideline,
> proposed:
> 
> adopt() aka "take ownership"
> 
> orphan() aka "release ownership"

Given that we already have "take"  methods that release ownership in the Qt 
containers, that won't work. See QList / QVector::takeAt.

-- 
Thiago Macieira - thiago.macieira (AT) intel.com
  Software Architect - Intel Open Source Technology Center






More information about the Development mailing list