[Development] Setters: Clarifying the ownership

Adam Treat adam.treat at qt.io
Fri Jan 19 18:06:37 CET 2018


How about "transfer"

On 01/19/2018 11:57 AM, Thiago Macieira wrote:
> 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.
>




More information about the Development mailing list