summaryrefslogtreecommitdiffstats
path: root/src/sord.c
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2011-04-16 21:49:31 +0000
committerDavid Robillard <d@drobilla.net>2011-04-16 21:49:31 +0000
commit230ee3eb976320cec9e55450c24e6c66fe6ea059 (patch)
tree0d33ba2b209646ca8bd0da2f79b9d73f0ede8a67 /src/sord.c
parent443928c063df9cdad1b25b1ee6d3b4fd85faf0d0 (diff)
downloadsord-230ee3eb976320cec9e55450c24e6c66fe6ea059.tar.gz
sord-230ee3eb976320cec9e55450c24e6c66fe6ea059.tar.bz2
sord-230ee3eb976320cec9e55450c24e6c66fe6ea059.zip
Update copyright headers
git-svn-id: http://svn.drobilla.net/sord/trunk@75 3d64ff67-21c5-427c-a301-fe4f08042e5a
Diffstat (limited to 'src/sord.c')
-rw-r--r--src/sord.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/sord.c b/src/sord.c
index 3152505..6061aa8 100644
--- a/src/sord.c
+++ b/src/sord.c
@@ -152,7 +152,7 @@ sord_literal_hash(const void* n)
SordNode node = (SordNode)n;
return g_str_hash(node->buf) + (node->lang ? g_str_hash(node->lang) : 0);
}
-
+
static gboolean
sord_literal_equal(const void* a, const void* b)
{
@@ -1015,7 +1015,7 @@ void
sord_remove(SordModel sord, const SordQuad tup)
{
SORD_WRITE_LOG("Remove " TUP_FMT "\n", TUP_FMT_ARGS(tup));
-
+
for (unsigned i = 0; i < NUM_ORDERS; ++i) {
if (sord->indices[i]) {
const int* const ordering = orderings[i];
@@ -1045,7 +1045,7 @@ sord_remove_iter(SordModel sord, SordIter iter)
sord_iter_get(iter, tup);
SORD_WRITE_LOG("Remove " TUP_FMT "\n", TUP_FMT_ARGS(tup));
-
+
// TODO: Directly remove the iterator's index (avoid one search)
for (unsigned i = 0; i < NUM_ORDERS; ++i) {
@@ -1062,7 +1062,7 @@ sord_remove_iter(SordModel sord, SordIter iter)
}
}
}
-
+
for (int i = 0; i < TUP_LEN; ++i)
sord_drop_quad_ref(sord, tup[i]);