[vlmc-devel] Removes a warning by replacing abs with qAbs

Barun Parruck git at videolan.org
Fri Mar 4 17:14:13 CET 2016


vlmc | branch: master | Barun Parruck <barun.parruck at gmail.com> | Wed Mar  2 20:37:43 2016 +0530| [6e401dc10e3b398596b910651a562dafba5e6562] | committer: Hugo Beauzée-Luyssen

Removes a warning by replacing abs with qAbs

While running 'make' a warning for the non declaration of std::abs was thrown.
The abs has been replaced by qAbs and the warning is no longer thrown.

Signed-off-by: Hugo Beauzée-Luyssen <hugo at beauzee.fr>

> https://code.videolan.org/videolan/vlmc/commit/6e401dc10e3b398596b910651a562dafba5e6562
---

 src/Workflow/TrackWorkflow.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/Workflow/TrackWorkflow.cpp b/src/Workflow/TrackWorkflow.cpp
index 62f52d1..6d875d0 100644
--- a/src/Workflow/TrackWorkflow.cpp
+++ b/src/Workflow/TrackWorkflow.cpp
@@ -303,7 +303,7 @@ TrackWorkflow::getOutput( qint64 currentFrame, qint64 subFrame, bool paused )
         if ( paused == true && subFrame != m_lastFrame && renderOneFrame == false)
             needRepositioning = true;
         else
-            needRepositioning = ( abs( subFrame - m_lastFrame ) > 1 ) ? true : false;
+            needRepositioning = ( qAbs( subFrame - m_lastFrame ) > 1 ) ? true : false;
     }
     memset( frames, 0, sizeof(*frames) * EffectsEngine::MaxFramesForMixer );
     while ( it != end )



More information about the Vlmc-devel mailing list