diff options
author | Tor Lillqvist <tml@collabora.com> | 2015-10-23 16:05:31 +0300 |
---|---|---|
committer | Tor Lillqvist <tml@collabora.com> | 2015-10-26 11:12:34 +0200 |
commit | 191cbcc173109fd5e31587b15f7b4fb174e235c0 (patch) | |
tree | b4014675bda5c5a8665cad6816bd2f63556d6b9a /slideshow/source | |
parent | c59d726976c4a27cf25d3b3d37a357f61d0a421e (diff) |
Drop some 'using', the std:: is not that ugly
Change-Id: If26ae80278dc55d5bf9fa644763e653c69415597
Diffstat (limited to 'slideshow/source')
-rw-r--r-- | slideshow/source/engine/OGLTrans/generic/OGLTrans_TransitionImpl.cxx | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/slideshow/source/engine/OGLTrans/generic/OGLTrans_TransitionImpl.cxx b/slideshow/source/engine/OGLTrans/generic/OGLTrans_TransitionImpl.cxx index 0f55a8cb7cfd..f0696bba70d9 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); |