Commit e925560b authored by Thiago Macieira's avatar Thiago Macieira Committed by The Qt Project
Browse files

Fix Clang warning of constant-false comparison


qstringvaluefns.cpp:224:23: error: comparison of constant -1 with expression of type 'QString::NormalizationForm' is always false [-Werror,-Wtautological-constant-out-of-range-compare]

Change-Id: Ia0dd98f72521709712f5ed11ecf19a48acaf1998
Reviewed-by: default avatarOlivier Goffart <ogoffart@woboq.com>
No related merge requests found
Showing with 1 addition and 1 deletion
......@@ -221,7 +221,7 @@ Expression::Ptr NormalizeUnicodeFN::compress(const StaticContext::Ptr &context)
m_normForm = static_cast<QString::NormalizationForm>(
determineNormalizationForm(context->dynamicContext()));
if(m_normForm == -1)
if (int(m_normForm) == -1)
return m_operands.first();
/* Remove the operand since we don't need it anymore. */
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment