summaryrefslogtreecommitdiff
path: root/src/xmlpatterns
diff options
context:
space:
mode:
authorThiago Macieira <thiago.macieira@intel.com>2013-09-06 11:02:45 -0700
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-09-07 23:26:02 +0200
commite925560b37e148b468c2dcc5d6f163eb539df3e9 (patch)
treebce41cc4205788ccf3612bb411301f75b24694d9 /src/xmlpatterns
parent6d6dcaf5e4bb3a14b943e77a258f422f0270074b (diff)
downloadqtxmlpatterns-e925560b37e148b468c2dcc5d6f163eb539df3e9.tar.gz
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: Olivier Goffart <ogoffart@woboq.com>
Diffstat (limited to 'src/xmlpatterns')
-rw-r--r--src/xmlpatterns/functions/qstringvaluefns.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/xmlpatterns/functions/qstringvaluefns.cpp b/src/xmlpatterns/functions/qstringvaluefns.cpp
index 766856c..6c4bac5 100644
--- a/src/xmlpatterns/functions/qstringvaluefns.cpp
+++ b/src/xmlpatterns/functions/qstringvaluefns.cpp
@@ -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. */