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:
authorCampbell Barton <ideasman42@gmail.com>2014-02-05 15:36:15 +0400
committerCampbell Barton <ideasman42@gmail.com>2014-02-05 15:36:15 +0400
commit37026b12ec1047dd5f4637ad281f108a7963af83 (patch)
treeb45d0b945f84dff6181fe26a464ddbfe0d127f6a /source/blender/editors/space_file/filelist.c
parent36fc4e15f69f4150812408b32a9052017590eb8b (diff)
Code cleanup: use bool for static methods
Diffstat (limited to 'source/blender/editors/space_file/filelist.c')
-rw-r--r--source/blender/editors/space_file/filelist.c14
1 files changed, 6 insertions, 8 deletions
diff --git a/source/blender/editors/space_file/filelist.c b/source/blender/editors/space_file/filelist.c
index 249ab3ef2c1..6ea5638b8f0 100644
--- a/source/blender/editors/space_file/filelist.c
+++ b/source/blender/editors/space_file/filelist.c
@@ -745,19 +745,17 @@ void filelist_setfilter_types(struct FileList *filelist, const char *filter_glob
}
/* would recognize .blend as well */
-static int file_is_blend_backup(const char *str)
+static bool file_is_blend_backup(const char *str)
{
- short a, b;
- int retval = 0;
-
- a = strlen(str);
- b = 7;
-
+ const size_t a = strlen(str);
+ size_t b = 7;
+ bool retval = 0;
+
if (a == 0 || b >= a) {
/* pass */
}
else {
- char *loc;
+ const char *loc;
if (a > b + 1)
b++;