[Libreoffice-commits] core.git: slideshow/source

Tor Lillqvist tml at collabora.com
Mon Oct 26 02:13:09 PDT 2015


 slideshow/source/engine/OGLTrans/generic/OGLTrans_TransitionImpl.cxx |   15 ++++------
 1 file changed, 6 insertions(+), 9 deletions(-)

New commits:
commit 191cbcc173109fd5e31587b15f7b4fb174e235c0
Author: Tor Lillqvist <tml at collabora.com>
Date:   Fri Oct 23 16:05:31 2015 +0300

    Drop some 'using', the std:: is not that ugly
    
    Change-Id: If26ae80278dc55d5bf9fa644763e653c69415597

diff --git a/slideshow/source/engine/OGLTrans/generic/OGLTrans_TransitionImpl.cxx b/slideshow/source/engine/OGLTrans/generic/OGLTrans_TransitionImpl.cxx
index 0f55a8c..f0696bb 100644
--- a/slideshow/source/engine/OGLTrans/generic/OGLTrans_TransitionImpl.cxx
+++ b/slideshow/source/engine/OGLTrans/generic/OGLTrans_TransitionImpl.cxx
@@ -29,6 +29,7 @@
 #include <GL/glew.h>
 #include <vcl/opengl/OpenGLHelper.hxx>
 
+#include <algorithm>
 #include <utility>
 
 #include <comphelper/random.hxx>
@@ -36,10 +37,6 @@
 #include "OGLTrans_TransitionImpl.hxx"
 #include <math.h>
 
-using std::max;
-using std::min;
-using std::vector;
-
 TransitionScene::TransitionScene(TransitionScene const& rOther)
     : maLeavingSlidePrimitives(rOther.maLeavingSlidePrimitives)
     , maEnteringSlidePrimitives(rOther.maEnteringSlidePrimitives)
@@ -705,7 +702,7 @@ std::shared_ptr<OGLTransitionImpl> makeRevolvingCircles( ::sal_uInt16 nCircles ,
     /// the last will always be the outer shell of the slide with a circle hole
 
     //add the full circle
-    vector<glm::vec2> unScaledTexCoords;
+    std::vector<glm::vec2> unScaledTexCoords;
     float TempAngle(0.0);
     for(unsigned int Point(0); Point < nPointsOnCircles; ++Point)
     {
@@ -818,8 +815,8 @@ std::shared_ptr<OGLTransitionImpl> makeHelix( ::sal_uInt16 nRows )
         Tile.pushTriangle(glm::vec2( 1.0 , iPDn ) , glm::vec2( 1.0 , iDn ) , glm::vec2( 0.0 , iPDn ));
 
         Tile.Operations.push_back( makeSRotate( glm::vec3( 0 , 1 , 0 ) , ( Tile.getVertices()[1] + Tile.getVertices()[3] )/2.0f , 180 ,
-                                                true,min(max(static_cast<double>(i - nRows/2.0)*invN/2.0,0.0),1.0),
-                                                min(max(static_cast<double>(i + nRows/2.0)*invN/2.0,0.0),1.0) ) );
+                                                true, std::min(std::max(static_cast<double>(i - nRows/2.0)*invN/2.0,0.0),1.0),
+                                                std::min(std::max(static_cast<double>(i + nRows/2.0)*invN/2.0,0.0),1.0) ) );
 
         aLeavingSlide.push_back(Tile);
 
@@ -1077,8 +1074,8 @@ void Primitive::swap(Primitive& rOther)
 
 void Primitive::pushTriangle(const glm::vec2& SlideLocation0,const glm::vec2& SlideLocation1,const glm::vec2& SlideLocation2)
 {
-    vector<glm::vec3> Verts;
-    vector<glm::vec2> Texs;
+    std::vector<glm::vec3> Verts;
+    std::vector<glm::vec2> Texs;
     Verts.reserve(3);
     Texs.reserve(3);
 


More information about the Libreoffice-commits mailing list