summaryrefslogtreecommitdiffstatshomepage
path: root/src/lib/formats/imageutl.cpp
diff options
context:
space:
mode:
author Miodrag Milanovic <mmicko@gmail.com>2016-10-22 16:37:12 +0200
committer Miodrag Milanovic <mmicko@gmail.com>2016-10-22 16:37:12 +0200
commita6bdefec8c76e9878b634119c56438a7673b0385 (patch)
tree9b435836a12773fe5b84cf1fd04866ecd9ecc2da /src/lib/formats/imageutl.cpp
parent5f3d4fb33da4304e417a0e142e82e3d292646465 (diff)
more TRUE/FALSE cleanup (nw)
Diffstat (limited to 'src/lib/formats/imageutl.cpp')
-rw-r--r--src/lib/formats/imageutl.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/lib/formats/imageutl.cpp b/src/lib/formats/imageutl.cpp
index ecb322aac57..6ab427115e0 100644
--- a/src/lib/formats/imageutl.cpp
+++ b/src/lib/formats/imageutl.cpp
@@ -97,7 +97,7 @@ static int is_delim(char c)
an extension list
-------------------------------------------------*/
-static int image_internal_find_extension(const char *extension_list, const char *target_extension)
+static bool image_internal_find_extension(const char *extension_list, const char *target_extension)
{
/* this version allows target_extension to be delimited with a comma */
int pos = 0;
@@ -116,7 +116,7 @@ static int image_internal_find_extension(const char *extension_list, const char
/* check to see if it was found */
if (is_delim(extension_list[pos + i]) && is_delim(target_extension[i]))
- return TRUE;
+ return true;
/* move to next position in the buffer */
pos += i;
@@ -127,7 +127,7 @@ static int image_internal_find_extension(const char *extension_list, const char
}
/* not found */
- return FALSE;
+ return false;
}
@@ -137,11 +137,11 @@ static int image_internal_find_extension(const char *extension_list, const char
list
-------------------------------------------------*/
-int image_find_extension(const char *extension_list, const char *target_extension)
+bool image_find_extension(const char *extension_list, const char *target_extension)
{
/* the internal function allows something that we do not */
if (strchr(target_extension, ','))
- return FALSE;
+ return false;
/* special case to allow ext to be in the form '.EXT' */
if (*target_extension == '.')