Changeset 12399


Ignore:
Timestamp:
Apr 29, 2011, 8:22:11 PM (12 years ago)
Author:
jordan
Message:

(trunk gtk) tweak to r12398: because most of the strings in category_filter_model_update() will be duplicates of each other, use g_string_chunk_insert_const() instead of g_string_insert().

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gtk/filter.c

    r12398 r12399  
    164164
    165165            gtr_get_host_from_url( buf, sizeof( buf ), inf->trackers[i].announce );
    166             key = g_string_chunk_insert( strings, buf );
     166            key = g_string_chunk_insert_const( strings, buf );
    167167
    168168            count = g_hash_table_lookup( hosts_hash, key );
Note: See TracChangeset for help on using the changeset viewer.