Maximize use of 'unowned' keyword.
authorTravis Reitter <travis.reitter@collabora.co.uk>
Tue, 28 Dec 2010 17:15:23 +0000 (09:15 -0800)
committerTravis Reitter <travis.reitter@collabora.co.uk>
Thu, 30 Dec 2010 01:13:45 +0000 (17:13 -0800)
commit7668bd500b5e6739da2b1e583df5265b0ba2b399
treed04c25ca1eb67c43cc8f93b11f450578fed8c94a
parentb93b4445e87bc645c1b6c1425deb17a99c27304c
Maximize use of 'unowned' keyword.

This is used when (and only when) variables:
1. would avoid a non-trivial copy (eg, a string or array but not an int or
object ref-count increase)
AND
2. will only be assigned unowned values (excessive use of 'unowned' here will be
caught by the compiler)

The net benefit is avoiding unecessary memory allocation/freeing.

Helps bgo#629083
HACKING
backends/key-file/kf-backend.vala
backends/key-file/kf-persona.vala
backends/telepathy/lib/tpf-persona-store.vala
backends/telepathy/lib/tpf-persona.vala
folks/backend-store.vala
folks/individual-aggregator.vala
folks/individual.vala