[Bf-blender-cvs] [87fdb714383] master: Cleanup: use static declarations
Campbell Barton
noreply at git.blender.org
Wed Dec 16 07:52:01 CET 2020
Commit: 87fdb714383326255fa656809d637403b9bb2adb
Author: Campbell Barton
Date: Wed Dec 16 16:12:50 2020 +1100
Branches: master
https://developer.blender.org/rB87fdb714383326255fa656809d637403b9bb2adb
Cleanup: use static declarations
===================================================================
M source/blender/editors/space_file/space_file.c
M source/blender/editors/space_outliner/outliner_context.c
===================================================================
diff --git a/source/blender/editors/space_file/space_file.c b/source/blender/editors/space_file/space_file.c
index 09b7e5b348c..d4f6618e82a 100644
--- a/source/blender/editors/space_file/space_file.c
+++ b/source/blender/editors/space_file/space_file.c
@@ -779,7 +779,7 @@ static void file_space_subtype_item_extend(bContext *UNUSED(C),
RNA_enum_items_add(item, totitem, rna_enum_space_file_browse_mode_items);
}
-const char *file_context_dir[] = {"active_file", "active_id", NULL};
+static const char *file_context_dir[] = {"active_file", "active_id", NULL};
static int /*eContextResult*/ file_context(const bContext *C,
const char *member,
diff --git a/source/blender/editors/space_outliner/outliner_context.c b/source/blender/editors/space_outliner/outliner_context.c
index e7dc2780c37..a314a640e42 100644
--- a/source/blender/editors/space_outliner/outliner_context.c
+++ b/source/blender/editors/space_outliner/outliner_context.c
@@ -50,7 +50,7 @@ static void outliner_context_selected_ids(const SpaceOutliner *space_outliner,
CTX_data_type_set(result, CTX_DATA_TYPE_COLLECTION);
}
-const char *outliner_context_dir[] = {"selected_ids", NULL};
+static const char *outliner_context_dir[] = {"selected_ids", NULL};
int /*eContextResult*/ outliner_context(const bContext *C,
const char *member,
More information about the Bf-blender-cvs
mailing list