From: Steve Evans Date: Mon, 3 Sep 2007 06:36:43 +0000 (+0000) Subject: Replace round with qRound, because round is not available X-Git-Tag: v3.94.0~85 X-Git-Url: https://git.rmz.fi/?a=commitdiff_plain;h=7650aafa041e74f46343ff23935ad2eb4c3671ba;p=libqmvoc.git Replace round with qRound, because round is not available on all platforms, e.g., Solaris svn path=/trunk/KDE/kdeedu/libkdeedu/; revision=707844 --- diff --git a/libscience/spectrum.cpp b/libscience/spectrum.cpp index 9bad5c5..928825c 100644 --- a/libscience/spectrum.cpp +++ b/libscience/spectrum.cpp @@ -81,7 +81,7 @@ void Spectrum::adjustIntensities() { double newInt = p->intensity*1000/maxInt; - p->intensity = ( int ) round( newInt ); + p->intensity = ( int ) qRound( newInt ); } }