diff options
author | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2016-09-20 10:42:44 +0200 |
---|---|---|
committer | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2016-09-20 09:15:14 +0000 |
commit | c04e5e65be4f8a5da86968632aa866f5eecbcbc0 (patch) | |
tree | c11ab41dad3c4ab3584e3a7370c7ab38a269a8ec /src/xmlpatterns/qtokenautomaton | |
parent | 4198cf58b3f0d48c9247cb902ab497ce87de0ac5 (diff) | |
download | qtxmlpatterns-c04e5e65be4f8a5da86968632aa866f5eecbcbc0.tar.gz |
qautomaton2cpp.xsl: Fix deprecated operator==(QChar, int)
Use QChar::unicode() instead.
Change-Id: Iaeff83259e4beb6672cf0da1657694b3903f3436
Reviewed-by: Marc Mutz <marc.mutz@kdab.com>
Diffstat (limited to 'src/xmlpatterns/qtokenautomaton')
-rw-r--r-- | src/xmlpatterns/qtokenautomaton/qautomaton2cpp.xsl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/xmlpatterns/qtokenautomaton/qautomaton2cpp.xsl b/src/xmlpatterns/qtokenautomaton/qautomaton2cpp.xsl index 16084a0..535dd8c 100644 --- a/src/xmlpatterns/qtokenautomaton/qautomaton2cpp.xsl +++ b/src/xmlpatterns/qtokenautomaton/qautomaton2cpp.xsl @@ -228,7 +228,7 @@ <xsl:if test="$remainingLength ne 0"> <xsl:choose> <xsl:when test="$remainingLength eq 1"> - if(data[<xsl:sequence select="$depth - 1"/>] == <xsl:sequence select="$toMatch"/>) + if (data[<xsl:sequence select="$depth - 1"/>].unicode() == <xsl:sequence select="$toMatch"/>) </xsl:when> <xsl:when test="$remainingLength > 1"> static const unsigned short string[] = @@ -250,7 +250,7 @@ <xsl:text>if (data[</xsl:text> <xsl:sequence select="string($depth - 1)"/> - <xsl:text>] == </xsl:text> + <xsl:text>].unicode() == </xsl:text> <xsl:sequence select="string-to-codepoints(.)"/> <xsl:text>)
</xsl:text> |