From 01dac3cf55502d0a73490cd54ada14a84887901b Mon Sep 17 00:00:00 2001 From: Rohan McGovern Date: Thu, 21 Jul 2011 09:36:12 +1000 Subject: [PATCH] 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 Reviewed-by: Michael Goddard --- examples/audiorecorder/audiorecorder.cpp | 2 +- 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 c3e7010a..ae6d3956 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 45e90d90..6f0194f2 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); } }