Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans Goudey <h.goudey@me.com>2022-10-04 01:37:25 +0300
committerHans Goudey <h.goudey@me.com>2022-10-04 01:38:16 +0300
commit97746129d5870beedc40e3c035c7982ce8a6bebc (patch)
treeb819b8e7875e6684aad7ea1f6bb7922d4fa1c8fc /source/blender/windowmanager
parented7f5713f8f9d605e3cd4cce42e40fb5c6bf4bf5 (diff)
Cleanup: replace UNUSED macro with commented args in C++ code
This is the conventional way of dealing with unused arguments in C++, since it works on all compilers. Regex find and replace: `UNUSED\((\w+)\)` -> `/*$1*/`
Diffstat (limited to 'source/blender/windowmanager')
-rw-r--r--source/blender/windowmanager/intern/wm_dragdrop.cc12
-rw-r--r--source/blender/windowmanager/intern/wm_event_system.cc6
2 files changed, 9 insertions, 9 deletions
diff --git a/source/blender/windowmanager/intern/wm_dragdrop.cc b/source/blender/windowmanager/intern/wm_dragdrop.cc
index f7d484e9b7a..63f3bbe2c92 100644
--- a/source/blender/windowmanager/intern/wm_dragdrop.cc
+++ b/source/blender/windowmanager/intern/wm_dragdrop.cc
@@ -471,7 +471,7 @@ void wm_drop_prepare(bContext *C, wmDrag *drag, wmDropBox *drop)
wm_drags_exit(CTX_wm_manager(C), CTX_wm_window(C));
}
-void wm_drop_end(bContext *C, wmDrag *UNUSED(drag), wmDropBox *UNUSED(drop))
+void wm_drop_end(bContext *C, wmDrag */*drag*/, wmDropBox */*drop*/)
{
CTX_store_set(C, nullptr);
}
@@ -496,7 +496,7 @@ void wm_drags_check_ops(bContext *C, const wmEvent *event)
}
}
-wmOperatorCallContext wm_drop_operator_context_get(const wmDropBox *UNUSED(drop))
+wmOperatorCallContext wm_drop_operator_context_get(const wmDropBox */*drop*/)
{
return WM_OP_INVOKE_DEFAULT;
}
@@ -818,8 +818,8 @@ static int wm_drag_imbuf_icon_height_get(const wmDrag *drag)
return round_fl_to_int(drag->imb->y * drag->imbuf_scale);
}
-static void wm_drag_draw_icon(bContext *UNUSED(C),
- wmWindow *UNUSED(win),
+static void wm_drag_draw_icon(bContext * /*C*/,
+ wmWindow */*win*/,
wmDrag *drag,
const int xy[2])
{
@@ -867,8 +867,8 @@ static void wm_drag_draw_item_name(wmDrag *drag, const int x, const int y)
UI_fontstyle_draw_simple(fstyle, x, y, WM_drag_get_item_name(drag), text_col);
}
-void WM_drag_draw_item_name_fn(bContext *UNUSED(C),
- wmWindow *UNUSED(win),
+void WM_drag_draw_item_name_fn(bContext * /*C*/,
+ wmWindow */*win*/,
wmDrag *drag,
const int xy[2])
{
diff --git a/source/blender/windowmanager/intern/wm_event_system.cc b/source/blender/windowmanager/intern/wm_event_system.cc
index 38e37d73eb9..6a10680fc8b 100644
--- a/source/blender/windowmanager/intern/wm_event_system.cc
+++ b/source/blender/windowmanager/intern/wm_event_system.cc
@@ -359,7 +359,7 @@ void WM_main_remove_notifier_reference(const void *reference)
}
}
-static void wm_main_remap_assetlist(ID *old_id, ID *new_id, void *UNUSED(user_data))
+static void wm_main_remap_assetlist(ID *old_id, ID *new_id, void * /*user_data*/)
{
ED_assetlist_storage_id_remap(old_id, new_id);
}
@@ -1226,7 +1226,7 @@ int WM_operator_repeat_last(bContext *C, wmOperator *op)
op->flag &= ~op_flag;
return ret;
}
-bool WM_operator_repeat_check(const bContext *UNUSED(C), wmOperator *op)
+bool WM_operator_repeat_check(const bContext * /*C*/, wmOperator *op)
{
if (op->type->exec != nullptr) {
return true;
@@ -4457,7 +4457,7 @@ wmEventHandler_Keymap *WM_event_add_keymap_handler_dynamic(
wmEventHandler_Keymap *WM_event_add_keymap_handler_priority(ListBase *handlers,
wmKeyMap *keymap,
- int UNUSED(priority))
+ int /*priority*/)
{
WM_event_remove_keymap_handler(handlers, keymap);