printers: Use const for manufacturer string

This commit is contained in:
Robert Ancell 2018-07-13 14:02:01 +12:00 committed by Felipe Borges
parent 0cdc458752
commit 09465579b7
4 changed files with 4 additions and 4 deletions

View file

@ -327,7 +327,7 @@ ppd_selection_dialog_response_cb (GtkDialog *dialog,
PpPPDSelectionDialog * PpPPDSelectionDialog *
pp_ppd_selection_dialog_new (GtkWindow *parent, pp_ppd_selection_dialog_new (GtkWindow *parent,
PPDList *ppd_list, PPDList *ppd_list,
gchar *manufacturer, const gchar *manufacturer,
UserResponseCallback user_callback, UserResponseCallback user_callback,
gpointer user_data) gpointer user_data)
{ {

View file

@ -30,7 +30,7 @@ typedef struct _PpPPDSelectionDialog PpPPDSelectionDialog;
PpPPDSelectionDialog *pp_ppd_selection_dialog_new (GtkWindow *parent, PpPPDSelectionDialog *pp_ppd_selection_dialog_new (GtkWindow *parent,
PPDList *ppd_list, PPDList *ppd_list,
gchar *manufacturer, const gchar *manufacturer,
UserResponseCallback user_callback, UserResponseCallback user_callback,
gpointer user_data); gpointer user_data);
gchar *pp_ppd_selection_dialog_get_ppd_name (PpPPDSelectionDialog *dialog); gchar *pp_ppd_selection_dialog_get_ppd_name (PpPPDSelectionDialog *dialog);

View file

@ -2991,7 +2991,7 @@ ppd_list_free (PPDList *list)
} }
gchar * gchar *
get_standard_manufacturers_name (gchar *name) get_standard_manufacturers_name (const gchar *name)
{ {
gchar *normalized_name; gchar *normalized_name;
gchar *result = NULL; gchar *result = NULL;

View file

@ -213,7 +213,7 @@ IPPAttribute *ipp_attribute_copy (IPPAttribute *attr);
void ipp_attribute_free (IPPAttribute *attr); void ipp_attribute_free (IPPAttribute *attr);
gchar *get_standard_manufacturers_name (gchar *name); gchar *get_standard_manufacturers_name (const gchar *name);
typedef void (*PGPCallback) (const gchar *ppd_filename, typedef void (*PGPCallback) (const gchar *ppd_filename,
gpointer user_data); gpointer user_data);