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:
authorJulian Eisel <julian@blender.org>2020-12-10 01:43:01 +0300
committerJulian Eisel <julian@blender.org>2020-12-10 01:43:01 +0300
commitb379f9348487ad4e13650f10820a987deef76fe6 (patch)
treebd66d7602e4ae739414310feba5f3a91525a4ea1 /source/blender/editors/space_file
parentd870a60dd9270764d5f61457224252200376dd2d (diff)
Cleanup: Use const for filter queries
Diffstat (limited to 'source/blender/editors/space_file')
-rw-r--r--source/blender/editors/space_file/filelist.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source/blender/editors/space_file/filelist.c b/source/blender/editors/space_file/filelist.c
index 1271feda1e7..e87142a7096 100644
--- a/source/blender/editors/space_file/filelist.c
+++ b/source/blender/editors/space_file/filelist.c
@@ -630,7 +630,7 @@ void filelist_setsorting(struct FileList *filelist, const short sort, bool inver
/* ********** Filter helpers ********** */
/* True if filename is meant to be hidden, eg. starting with period. */
-static bool is_hidden_dot_filename(const char *filename, FileListInternEntry *file)
+static bool is_hidden_dot_filename(const char *filename, const FileListInternEntry *file)
{
if (filename[0] == '.' && !ELEM(filename[1], '.', '\0')) {
return true; /* ignore .file */
@@ -671,8 +671,8 @@ static bool is_hidden_dot_filename(const char *filename, FileListInternEntry *fi
/* True if should be hidden, based on current filtering. */
static bool is_filtered_hidden(const char *filename,
- FileListFilter *filter,
- FileListInternEntry *file)
+ const FileListFilter *filter,
+ const FileListInternEntry *file)
{
if ((filename[0] == '.') && (filename[1] == '\0')) {
return true; /* Ignore . */