diff options
author | Cyrille Bagard <nocbos@gmail.com> | 2019-09-29 21:27:03 (GMT) |
---|---|---|
committer | Cyrille Bagard <nocbos@gmail.com> | 2019-09-29 21:27:03 (GMT) |
commit | 3a83a06db8ee27eafcd0219d1d26bf2af23737f5 (patch) | |
tree | 163ea7fbe1435b9f380e7ae96dfc36d8f16d1d0a /src/analysis/db/items/move.c | |
parent | 55bc8570f25a479b222733c4093f9ae996c9f68e (diff) |
Cleaned the DB code a little bit.
Diffstat (limited to 'src/analysis/db/items/move.c')
-rw-r--r-- | src/analysis/db/items/move.c | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/src/analysis/db/items/move.c b/src/analysis/db/items/move.c index afc3331..3e347d3 100644 --- a/src/analysis/db/items/move.c +++ b/src/analysis/db/items/move.c @@ -75,7 +75,7 @@ static void g_db_move_dispose(GDbMove *); static void g_db_move_finalize(GDbMove *); /* Effectue la comparaison entre deux changements de position. */ -static gint g_db_move_cmp(GDbMove *, GDbMove *, bool); +static gint g_db_move_cmp(const GDbMove *, const GDbMove *); /* Importe la définition d'un déplacement depuis un flux réseau. */ static bool g_db_move_unpack(GDbMove *, packed_buffer *); @@ -279,9 +279,8 @@ GDbMove *g_db_move_new(const GLineCursor *src, const GLineCursor *dest) /****************************************************************************** * * -* Paramètres : a = premier élément à analyser. * -* b = second élément à analyser. * -* with = précise les horodatages à prendre en compte. * +* Paramètres : a = premier élément à analyser. * +* b = second élément à analyser. * * * * Description : Effectue la comparaison entre deux changements de position. * * * @@ -291,7 +290,7 @@ GDbMove *g_db_move_new(const GLineCursor *src, const GLineCursor *dest) * * ******************************************************************************/ -static gint g_db_move_cmp(GDbMove *a, GDbMove *b, bool with) +static gint g_db_move_cmp(const GDbMove *a, const GDbMove *b) { gint result; /* Bilan de la comparaison */ @@ -300,9 +299,6 @@ static gint g_db_move_cmp(GDbMove *a, GDbMove *b, bool with) if (result == 0) result = g_line_cursor_compare(a->dest, b->dest); - if (result == 0) - result = G_DB_ITEM_CLASS(g_db_move_parent_class)->cmp(G_DB_ITEM(a), G_DB_ITEM(b), with); - return result; } |