mirror of
https://github.com/transmission/transmission
synced 2025-02-20 21:26:53 +00:00
(trunk gtk) minor janitorial: const correctness in tr-core's compare_by_name()
This commit is contained in:
parent
d25735dd9f
commit
4ce3555786
1 changed files with 1 additions and 1 deletions
|
@ -451,7 +451,7 @@ compare_time( time_t a, time_t b )
|
|||
static int
|
||||
compare_by_name( GtkTreeModel * m, GtkTreeIter * a, GtkTreeIter * b, gpointer user_data UNUSED )
|
||||
{
|
||||
char *ca, *cb;
|
||||
const char *ca, *cb;
|
||||
gtk_tree_model_get( m, a, MC_NAME_COLLATED, &ca, -1 );
|
||||
gtk_tree_model_get( m, b, MC_NAME_COLLATED, &cb, -1 );
|
||||
return tr_strcmp0( ca, cb );
|
||||
|
|
Loading…
Reference in a new issue