Merge lp:~rainct/zeitgeist/collapse-uri into lp:~zeitgeist/zeitgeist/bluebird
Proposed by
Siegfried Gevatter
Status: | Merged |
---|---|
Merge reported by: | Michal Hruby |
Merged at revision: | not available |
Proposed branch: | lp:~rainct/zeitgeist/collapse-uri |
Merge into: | lp:~zeitgeist/zeitgeist/bluebird |
Diff against target: |
115 lines (+37/-1) 2 files modified
extensions/fts++/indexer.cpp (+33/-1) extensions/fts++/indexer.h (+4/-0) |
To merge this branch: | bzr merge lp:~rainct/zeitgeist/collapse-uri |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Michal Hruby (community) | Needs Fixing | ||
Review via email: mp+95994@code.launchpad.net |
To post a comment you must log in.
Looks really good, a couple of comments:
8 +#include <cassert> type_get_ length (G_CHECKSUM_MD5) == 16);
25 + assert (g_checksum_
We have glib for that (g_assert) ;)
Let's also turn all the magic "16"s into a const / #define.
88 +#include <glib/gchecksum.h>
Looks like some private header to me, docs say to use <glib.h>.
104 + if (checksum) { g_checksum_free (checksum); checksum = NULL; }
No need to break the style, C++'s destructors are always run just once.
75 + g_checksum_reset (checksum);
This should be done earlier, the .add_value() could throw an error screwing later use of the GChecksum.