diff options
author | Marc Mutz <marc.mutz@kdab.com> | 2012-02-28 00:11:28 +0100 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-02-28 11:54:52 +0100 |
commit | 3518db0bbecd2b10fac714e006f52d66a4f7a992 (patch) | |
tree | 95584a394d893aa3fed6167f0d74cc392dcf331d /src/tools | |
parent | f220f99a6d13a395ca723e9f923b16ef9ac9716b (diff) |
QDomNode: don't needlessly call virtual functions
Commit 4dabe78387d10495f9f6d0a7395f2ba3c80432bd changed
these functions from virtuals to inlines that check the
return value of the remaining virtual function nodeType().
However, two of the functions call nodeType() more than
once, which we know will return the same result each time,
but requires a compiler with interprocedural optimization
capabilities to figure out by itself.
So instead of repeatedly calling nodeType(), call it once
and store its return value in a temporary, and use the
temp for further comparisions.
Change-Id: Idbeafb7fd93d275d475218c6df2ad7fdc9162cc5
Reviewed-by: Richard J. Moore <rich@kde.org>
Diffstat (limited to 'src/tools')
0 files changed, 0 insertions, 0 deletions