summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorThiago Marcos P. Santos <tmpsantos@gmail.com>2020-03-27 18:30:35 +0200
committerThiago Marcos P. Santos <tmpsantos@gmail.com>2020-03-30 23:37:44 +0300
commit0f235ac6d5a0e3f795c770d44cb172307d0e3123 (patch)
tree7628393f446f994ac208dda44bd324ca511d219b /src
parent5bb7ebd7de5a020cda7ab1a590d81c73acdf377e (diff)
downloadqtlocation-mapboxgl-0f235ac6d5a0e3f795c770d44cb172307d0e3123.tar.gz
[core] Fix bugprone-macro-parentheses errors
As reported by clang-tidy-8.
Diffstat (limited to 'src')
-rw-r--r--src/mbgl/util/i18n.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/mbgl/util/i18n.cpp b/src/mbgl/util/i18n.cpp
index 885c8ec3d1..ce3ef65f3a 100644
--- a/src/mbgl/util/i18n.cpp
+++ b/src/mbgl/util/i18n.cpp
@@ -12,10 +12,8 @@ namespace {
@param first The first codepoint in the block, inclusive.
@param last The last codepoint in the block, inclusive.
*/
-#define DEFINE_IS_IN_UNICODE_BLOCK(name, first, last) \
- inline bool isIn##name(char16_t codepoint) { \
- return codepoint >= first && codepoint <= last; \
- }
+#define DEFINE_IS_IN_UNICODE_BLOCK(name, first, last) \
+ inline bool isIn##name(char16_t codepoint) { return codepoint >= (first) && codepoint <= (last); }
// The following table comes from <http://www.unicode.org/Public/12.0.0/ucd/Blocks.txt>.
// Keep it synchronized with <http://www.unicode.org/Public/UCD/latest/ucd/Blocks.txt>.