summaryrefslogtreecommitdiffstats
path: root/src/port.c
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2011-02-11 18:15:18 +0000
committerDavid Robillard <d@drobilla.net>2011-02-11 18:15:18 +0000
commit4861238c1624a193e30fc0aa78438b4977dbeb82 (patch)
tree3a740862ccb973833e4c2638010d4bbe00ac0a67 /src/port.c
parent9749ab338c735f777be4fe6dc89082ea30044df1 (diff)
downloadlilv-4861238c1624a193e30fc0aa78438b4977dbeb82.tar.gz
lilv-4861238c1624a193e30fc0aa78438b4977dbeb82.tar.bz2
lilv-4861238c1624a193e30fc0aa78438b4977dbeb82.zip
Use GSequence for collections with get_by_uri search methods.
Avoid constant sorting during plugin discovery. git-svn-id: http://svn.drobilla.net/lad/trunk/slv2@2919 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/port.c')
-rw-r--r--src/port.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/port.c b/src/port.c
index 615d38f..fd44512 100644
--- a/src/port.c
+++ b/src/port.c
@@ -289,7 +289,7 @@ slv2_port_get_scale_points(SLV2Plugin p,
slv2_node_copy(p->world->rdfs_label_node));
if (value && label) {
- g_ptr_array_add(ret, slv2_scale_point_new(value, label));
+ slv2_array_append(ret, slv2_scale_point_new(value, label));
}
}
slv2_match_end(points);