diff options
author | Rohan McGovern <rohan.mcgovern@nokia.com> | 2011-07-21 09:36:12 +1000 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2011-07-21 02:20:28 +0200 |
commit | 01dac3cf55502d0a73490cd54ada14a84887901b (patch) | |
tree | f4320131ee9d96bc1dd6007fc4a3467639ed9c6d | |
parent | 4271cbcaf19e9f9136877400de7621542b1fd70c (diff) |
Fixed compile; removed useless use of qRound with integers
qRound of an integer type never made sense.
Since 2dcd3939a8bd5ff743e4c87f87b2d81b1a101467 in qtbase, it won't
compile any more.
Change-Id: Ia30334bc92236d0fef9b6ac99d65bae4fe79dc57
Reviewed-on: http://codereview.qt.nokia.com/1905
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Michael Goddard <michael.goddard@nokia.com>
-rw-r--r-- | examples/audiorecorder/audiorecorder.cpp | 2 | ||||
-rw-r--r-- | src/plugins/gstreamer/qgstutils.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/examples/audiorecorder/audiorecorder.cpp b/examples/audiorecorder/audiorecorder.cpp index c3e7010a2..ae6d3956e 100644 --- a/examples/audiorecorder/audiorecorder.cpp +++ b/examples/audiorecorder/audiorecorder.cpp @@ -117,7 +117,7 @@ void AudioRecorder::updateProgress(qint64 duration) if (capture->error() != QMediaRecorder::NoError || duration < 2000) return; - ui->statusbar->showMessage(tr("Recorded %1 sec").arg(qRound(duration / 1000))); + ui->statusbar->showMessage(tr("Recorded %1 sec").arg(duration / 1000)); } void AudioRecorder::updateState(QMediaRecorder::State state) diff --git a/src/plugins/gstreamer/qgstutils.cpp b/src/plugins/gstreamer/qgstutils.cpp index 45e90d906..6f0194f24 100644 --- a/src/plugins/gstreamer/qgstutils.cpp +++ b/src/plugins/gstreamer/qgstutils.cpp @@ -157,7 +157,7 @@ QSize QGstUtils::capsCorrectedResolution(const GstCaps *caps) if (!size.isEmpty() && gst_structure_get_fraction( structure, "pixel-aspect-ratio", &aspectNum, &aspectDenum)) { if (aspectDenum > 0) - size.setWidth(qRound(size.width()*aspectNum/aspectDenum)); + size.setWidth(size.width()*aspectNum/aspectDenum); } } |