[gnome-software: 2/8] gs-app-list: Mark the helper struct as const
- From: Philip Withnall <pwithnall src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software: 2/8] gs-app-list: Mark the helper struct as const
- Date: Mon, 26 Apr 2021 14:50:02 +0000 (UTC)
commit 0538ff7205cc1527ddb3237abd57dc73e922b0c8
Author: Philip Withnall <pwithnall endlessos org>
Date: Wed Apr 21 14:47:14 2021 +0100
gs-app-list: Mark the helper struct as const
This doesn’t make any functional changes. It potentially speeds things
up a teeny bit, although that’s doubtful.
Signed-off-by: Philip Withnall <pwithnall endlessos org>
lib/gs-app-list.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/lib/gs-app-list.c b/lib/gs-app-list.c
index 746163d7c..ae10709fc 100644
--- a/lib/gs-app-list.c
+++ b/lib/gs-app-list.c
@@ -588,7 +588,7 @@ gs_app_list_sort_cb (gconstpointer a, gconstpointer b, gpointer user_data)
{
GsApp *app1 = GS_APP (*(GsApp **) a);
GsApp *app2 = GS_APP (*(GsApp **) b);
- GsAppListSortHelper *helper = (GsAppListSortHelper *) user_data;
+ const GsAppListSortHelper *helper = (GsAppListSortHelper *) user_data;
return helper->func (app1, app2, helper->user_data);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]