Cleanup: Use const for UI icon getter function
This commit is contained in:
committed by
Sybren A. Stüvel
parent
26b098c04f
commit
6bd42baaeb
@@ -105,7 +105,10 @@ int UI_iconfile_get_index(const char *filename);
|
||||
|
||||
struct PreviewImage *UI_icon_to_preview(int icon_id);
|
||||
|
||||
int UI_icon_from_rnaptr(struct bContext *C, struct PointerRNA *ptr, int rnaicon, const bool big);
|
||||
int UI_icon_from_rnaptr(const struct bContext *C,
|
||||
struct PointerRNA *ptr,
|
||||
int rnaicon,
|
||||
const bool big);
|
||||
int UI_icon_from_idcode(const int idcode);
|
||||
int UI_icon_from_library(const struct ID *id);
|
||||
int UI_icon_from_object_mode(const int mode);
|
||||
|
||||
@@ -2201,7 +2201,7 @@ int UI_icon_from_library(const ID *id)
|
||||
return ICON_NONE;
|
||||
}
|
||||
|
||||
int UI_icon_from_rnaptr(bContext *C, PointerRNA *ptr, int rnaicon, const bool big)
|
||||
int UI_icon_from_rnaptr(const bContext *C, PointerRNA *ptr, int rnaicon, const bool big)
|
||||
{
|
||||
ID *id = NULL;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user