aboutsummaryrefslogtreecommitdiffstats
path: root/alc/alconfig.cpp
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2022-04-16 03:53:54 -0700
committerChris Robinson <[email protected]>2022-04-16 03:53:54 -0700
commitadccf0aec935ff9b30e57aa8f4a1eb006beb92c2 (patch)
treee22eb24966d515caefffc7135a9fb35dcb90858d /alc/alconfig.cpp
parent4bfaf860bfc2575c7dcfa5192902bfef35a36234 (diff)
Use a bool type for boolean parameters
Diffstat (limited to 'alc/alconfig.cpp')
-rw-r--r--alc/alconfig.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/alc/alconfig.cpp b/alc/alconfig.cpp
index 60cb4daf..7c1eec6d 100644
--- a/alc/alconfig.cpp
+++ b/alc/alconfig.cpp
@@ -519,7 +519,7 @@ al::optional<bool> ConfigValueBool(const char *devName, const char *blockName, c
return al::nullopt;
}
-int GetConfigValueBool(const char *devName, const char *blockName, const char *keyName, int def)
+bool GetConfigValueBool(const char *devName, const char *blockName, const char *keyName, bool def)
{
if(const char *val{GetConfigValue(devName, blockName, keyName)})
return (al::strcasecmp(val, "on") == 0 || al::strcasecmp(val, "yes") == 0