diff options
author | Andrei Karas <akaras@inbox.ru> | 2018-02-01 03:15:11 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2018-02-01 03:15:11 +0300 |
commit | fa338df6c1f3984478671dae8d69ec8866e45f34 (patch) | |
tree | 132dc3951aebc769bbba21613e73d62561b628a8 /src/utils/stringutils.h | |
parent | 60442c08c69feed3e1807774c8a8254628c4ad65 (diff) | |
download | mv-fa338df6c1f3984478671dae8d69ec8866e45f34.tar.gz mv-fa338df6c1f3984478671dae8d69ec8866e45f34.tar.bz2 mv-fa338df6c1f3984478671dae8d69ec8866e45f34.tar.xz mv-fa338df6c1f3984478671dae8d69ec8866e45f34.zip |
Fix compilation with clang.
Diffstat (limited to 'src/utils/stringutils.h')
-rw-r--r-- | src/utils/stringutils.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/utils/stringutils.h b/src/utils/stringutils.h index cb4bbb332..7bbc3a081 100644 --- a/src/utils/stringutils.h +++ b/src/utils/stringutils.h @@ -136,8 +136,9 @@ int compareStrI(const std::string &a, const std::string &b) A_WARN_UNUSED; /** * Tells wether the character is a word separator. */ -constexpr bool isWordSeparator(const signed char chr) A_CONST A_WARN_UNUSED; -constexpr bool isWordSeparator(const signed char chr) +constexpr inline bool isWordSeparator(const signed char chr) + A_CONST A_WARN_UNUSED; +constexpr inline bool isWordSeparator(const signed char chr) { return chr == ' ' || chr == ',' || |