[folks] tracker: Fix assignment of owned value to unowned variable
- From: Philip Withnall <pwithnall src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [folks] tracker: Fix assignment of owned value to unowned variable
- Date: Tue, 20 Sep 2016 22:29:09 +0000 (UTC)
commit 4603e7796b9b6a9e98c1931e290e538f9e1d46e5
Author: Philip Withnall <philip withnall collabora co uk>
Date: Tue Sep 20 14:00:10 2016 -0700
tracker: Fix assignment of owned value to unowned variable
Vala has (rightfully) got more strict about this. This should work with
older Vala releases too.
backends/tracker/lib/trf-util.vala | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/backends/tracker/lib/trf-util.vala b/backends/tracker/lib/trf-util.vala
index 53d48e6..9b10cb3 100644
--- a/backends/tracker/lib/trf-util.vala
+++ b/backends/tracker/lib/trf-util.vala
@@ -72,7 +72,7 @@ internal class Trf.AfflInfo : Object
{
string ret = " { ";
bool first = true;
- unowned ParamSpec[] properties = this.get_class ().list_properties ();
+ var properties = this.get_class ().list_properties ();
foreach (unowned ParamSpec pspec in properties)
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]