summaryrefslogtreecommitdiffstats
path: root/src/gui/image/qimagewriter.cpp
diff options
context:
space:
mode:
authorEdward Welbourne <edward.welbourne@qt.io>2017-02-21 17:11:43 +0100
committerEdward Welbourne <edward.welbourne@qt.io>2017-02-27 17:45:28 +0000
commit1631384c278620597323b0b78abce3ef7022db26 (patch)
tree9075fa0e95102f1753c663b1578404fa301106a9 /src/gui/image/qimagewriter.cpp
parent2b339cd3e48beeb4369cd2bf475f9c87e970a801 (diff)
tst_QWMatrix: use lambdas to duplicate messy code less
The cumbersome complex calls to QMatrix were surely easy to write thanks to copy-and-paste; but this left the reader to either laboriously check or guess that all the copies were the same (and notice that there were two, in fact). DRY. Since QMatrix wants qreal data, change the float deg angle to a qreal and work in qreal throughout. Passing the angle to a function instead of repeating it obviates the need for a local variable in the calling code, to hold its value. Change-Id: I6bb4adf438a893083ca19f27942502c1e5c518aa Reviewed-by: Marc Mutz <marc.mutz@kdab.com>
Diffstat (limited to 'src/gui/image/qimagewriter.cpp')
0 files changed, 0 insertions, 0 deletions