Cleanup: Use unsigned int when for enum values, instead of signed int.
This commit is contained in:
parent
906d93110e
commit
737b0fd762
|
@ -1504,7 +1504,7 @@ static void ui_menu_block_set_keymaps(const bContext *C, uiBlock *block)
|
|||
|
||||
void ui_but_override_flag(uiBut *but)
|
||||
{
|
||||
const int override_status = RNA_property_override_library_status(
|
||||
const uint override_status = RNA_property_override_library_status(
|
||||
&but->rnapoin, but->rnaprop, but->rnaindex);
|
||||
|
||||
if (override_status & RNA_OVERRIDE_STATUS_OVERRIDDEN) {
|
||||
|
|
|
@ -561,7 +561,7 @@ bool ui_popup_context_menu_for_button(bContext *C, uiBut *but)
|
|||
const bool is_array_component = (is_array && but->rnaindex != -1);
|
||||
const bool is_whole_array = (is_array && but->rnaindex == -1);
|
||||
|
||||
const int override_status = RNA_property_override_library_status(ptr, prop, -1);
|
||||
const uint override_status = RNA_property_override_library_status(ptr, prop, -1);
|
||||
const bool is_overridable = (override_status & RNA_OVERRIDE_STATUS_OVERRIDABLE) != 0;
|
||||
|
||||
/* Set the (button_pointer, button_prop)
|
||||
|
|
|
@ -513,7 +513,7 @@ static bool override_type_set_button_poll(bContext *C)
|
|||
|
||||
UI_context_active_but_prop_get(C, &ptr, &prop, &index);
|
||||
|
||||
const int override_status = RNA_property_override_library_status(&ptr, prop, index);
|
||||
const uint override_status = RNA_property_override_library_status(&ptr, prop, index);
|
||||
|
||||
return (ptr.data && prop && (override_status & RNA_OVERRIDE_STATUS_OVERRIDABLE));
|
||||
}
|
||||
|
|
|
@ -1150,7 +1150,7 @@ eRNAOverrideStatus RNA_property_override_library_status(PointerRNA *ptr,
|
|||
PropertyRNA *prop,
|
||||
const int index)
|
||||
{
|
||||
int override_status = 0;
|
||||
uint override_status = 0;
|
||||
|
||||
if (!BKE_lib_override_library_is_enabled()) {
|
||||
return override_status;
|
||||
|
|
Loading…
Reference in New Issue