Cleanup: use the name 'ot' for wmOperatorType for unused arguments
This commit is contained in:
parent
6bd57e1f1f
commit
3859a08704
|
@ -352,7 +352,7 @@ static bool asset_clear_poll(bContext *C)
|
|||
}
|
||||
|
||||
static std::string asset_clear_get_description(bContext * /*C*/,
|
||||
wmOperatorType * /*op*/,
|
||||
wmOperatorType * /*ot*/,
|
||||
PointerRNA *values)
|
||||
{
|
||||
const bool set_fake_user = RNA_boolean_get(values, "set_fake_user");
|
||||
|
|
|
@ -1396,7 +1396,7 @@ static int edbm_select_mode_invoke(bContext *C, wmOperator *op, const wmEvent *e
|
|||
}
|
||||
|
||||
static std::string edbm_select_mode_get_description(bContext * /*C*/,
|
||||
wmOperatorType * /*op*/,
|
||||
wmOperatorType * /*ot*/,
|
||||
PointerRNA *values)
|
||||
{
|
||||
const int type = RNA_enum_get(values, "type");
|
||||
|
|
|
@ -1867,7 +1867,7 @@ static int modifier_apply_as_shapekey_invoke(bContext *C, wmOperator *op, const
|
|||
}
|
||||
|
||||
static std::string modifier_apply_as_shapekey_get_description(bContext * /*C*/,
|
||||
wmOperatorType * /*op*/,
|
||||
wmOperatorType * /*ot*/,
|
||||
PointerRNA *values)
|
||||
{
|
||||
bool keep = RNA_boolean_get(values, "keep_modifier");
|
||||
|
|
|
@ -2992,7 +2992,7 @@ static int vertex_group_lock_exec(bContext *C, wmOperator *op)
|
|||
}
|
||||
|
||||
static std::string vertex_group_lock_description(bContext * /*C*/,
|
||||
wmOperatorType * /*op*/,
|
||||
wmOperatorType * /*ot*/,
|
||||
PointerRNA *params)
|
||||
{
|
||||
int action = RNA_enum_get(params, "action");
|
||||
|
|
|
@ -696,7 +696,7 @@ static int actkeys_paste_exec(bContext *C, wmOperator *op)
|
|||
}
|
||||
|
||||
static std::string actkeys_paste_description(bContext * /*C*/,
|
||||
wmOperatorType * /*op*/,
|
||||
wmOperatorType * /*ot*/,
|
||||
PointerRNA *ptr)
|
||||
{
|
||||
/* Custom description if the 'flipped' option is used. */
|
||||
|
|
|
@ -390,7 +390,7 @@ static int track_markers_modal(bContext *C, wmOperator * /*op*/, const wmEvent *
|
|||
return OPERATOR_PASS_THROUGH;
|
||||
}
|
||||
|
||||
static std::string track_markers_desc(bContext * /*C*/, wmOperatorType * /*op*/, PointerRNA *ptr)
|
||||
static std::string track_markers_desc(bContext * /*C*/, wmOperatorType * /*ot*/, PointerRNA *ptr)
|
||||
{
|
||||
const bool backwards = RNA_boolean_get(ptr, "backwards");
|
||||
const bool sequence = RNA_boolean_get(ptr, "sequence");
|
||||
|
|
|
@ -604,7 +604,7 @@ static int graphkeys_paste_exec(bContext *C, wmOperator *op)
|
|||
}
|
||||
|
||||
static std::string graphkeys_paste_description(bContext * /*C*/,
|
||||
wmOperatorType * /*op*/,
|
||||
wmOperatorType * /*ot*/,
|
||||
PointerRNA *ptr)
|
||||
{
|
||||
/* Custom description if the 'flipped' option is used. */
|
||||
|
|
|
@ -537,7 +537,7 @@ static bool decimate_poll_property(const bContext * /*C*/, wmOperator *op, const
|
|||
return true;
|
||||
}
|
||||
|
||||
static std::string decimate_desc(bContext * /*C*/, wmOperatorType * /*op*/, PointerRNA *ptr)
|
||||
static std::string decimate_desc(bContext * /*C*/, wmOperatorType * /*ot*/, PointerRNA *ptr)
|
||||
{
|
||||
|
||||
if (RNA_enum_get(ptr, "mode") == DECIM_ERROR) {
|
||||
|
|
|
@ -1482,7 +1482,7 @@ static int sequencer_add_effect_strip_invoke(bContext *C,
|
|||
}
|
||||
|
||||
static std::string sequencer_add_effect_strip_desc(bContext * /*C*/,
|
||||
wmOperatorType * /*op*/,
|
||||
wmOperatorType * /*ot*/,
|
||||
PointerRNA *ptr)
|
||||
{
|
||||
const int type = RNA_enum_get(ptr, "type");
|
||||
|
|
|
@ -2889,7 +2889,7 @@ static int wm_open_mainfile_exec(bContext *C, wmOperator *op)
|
|||
}
|
||||
|
||||
static std::string wm_open_mainfile_description(bContext * /*C*/,
|
||||
wmOperatorType * /*op*/,
|
||||
wmOperatorType * /*ot*/,
|
||||
PointerRNA *params)
|
||||
{
|
||||
if (!RNA_struct_property_is_set(params, "filepath")) {
|
||||
|
|
Loading…
Reference in New Issue