aboutsummaryrefslogtreecommitdiffstats
path: root/src/libs/3rdparty/cplusplus/Control.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/libs/3rdparty/cplusplus/Control.cpp')
-rw-r--r--src/libs/3rdparty/cplusplus/Control.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/libs/3rdparty/cplusplus/Control.cpp b/src/libs/3rdparty/cplusplus/Control.cpp
index e274a20906..42028ae4ed 100644
--- a/src/libs/3rdparty/cplusplus/Control.cpp
+++ b/src/libs/3rdparty/cplusplus/Control.cpp
@@ -584,7 +584,7 @@ const Identifier *Control::identifier(const char *chars, unsigned size)
const Identifier *Control::identifier(const char *chars)
{
- unsigned length = std::strlen(chars);
+ const unsigned length = unsigned(std::strlen(chars));
return identifier(chars, length);
}
@@ -611,7 +611,7 @@ const StringLiteral *Control::stringLiteral(const char *chars, unsigned size)
const StringLiteral *Control::stringLiteral(const char *chars)
{
- unsigned length = std::strlen(chars);
+ const unsigned length = unsigned(std::strlen(chars));
return stringLiteral(chars, length);
}
@@ -620,7 +620,7 @@ const NumericLiteral *Control::numericLiteral(const char *chars, unsigned size)
const NumericLiteral *Control::numericLiteral(const char *chars)
{
- unsigned length = std::strlen(chars);
+ const unsigned length = unsigned(std::strlen(chars));
return numericLiteral(chars, length);
}