From ee64778cac8ecacdf28edc79b3d04b65e46c0fde Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Wed, 20 Mar 2024 14:43:35 +1100 Subject: [PATCH] Cleanup: code-comments for struct ID's and use backtick quotes - Prefix comments before members is used practically everywhere, remove C99 syntax from inside comments. - Replace double quotes with backticks for code styling. --- source/blender/blenkernel/intern/lib_remap.cc | 10 +++++----- source/blender/windowmanager/WM_api.hh | 4 ++-- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/source/blender/blenkernel/intern/lib_remap.cc b/source/blender/blenkernel/intern/lib_remap.cc index 99720c4a643..84245cd154a 100644 --- a/source/blender/blenkernel/intern/lib_remap.cc +++ b/source/blender/blenkernel/intern/lib_remap.cc @@ -488,11 +488,11 @@ static void libblock_remap_data( Main *bmain, ID *id, eIDRemapType remap_type, IDRemapper &id_remapper, const int remap_flags) { IDRemap id_remap_data = { - /*.type=*/remap_type, - /*.bmain=*/bmain, - /*.id_remapper=*/id_remapper, - /*.id_owner=*/nullptr, - /*.flag=*/remap_flags, + /*type*/ remap_type, + /*bmain*/ bmain, + /*id_remapper*/ id_remapper, + /*id_owner*/ nullptr, + /*flag*/ remap_flags, }; const bool include_ui = (remap_flags & ID_REMAP_FORCE_UI_POINTERS) != 0; diff --git a/source/blender/windowmanager/WM_api.hh b/source/blender/windowmanager/WM_api.hh index 0f90cee27d3..6bf6833b8fa 100644 --- a/source/blender/windowmanager/WM_api.hh +++ b/source/blender/windowmanager/WM_api.hh @@ -1215,8 +1215,8 @@ void WM_uilisttype_free(); /** * The "full" list-ID is an internal name used for storing and identifying a list. It is built like * this: - * "{uiListType.idname}_{list_id}", whereby "list_id" is an optional parameter passed to - * `UILayout.template_list()`. If it is not set, the full list-ID is just "{uiListType.idname}_". + * `{uiListType.idname}_{list_id}`, whereby `list_id` is an optional parameter passed to + * `UILayout.template_list()`. If it is not set, the full list-ID is just `{uiListType.idname}_`. * * Note that whenever the Python API refers to the list-ID, it's the short, "non-full" one it * passed to `UILayout.template_list()`. C code can query that through