[Libreoffice-commits] core.git: vcl/opengl
krishna keshav
princy.krishnakeshav at gmail.com
Mon May 30 07:12:49 UTC 2016
vcl/opengl/FixedTextureAtlas.cxx | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
New commits:
commit a7e2d4923b220900f41d0b70904377c771939e6f
Author: krishna keshav <princy.krishnakeshav at gmail.com>
Date: Sun May 29 21:04:41 2016 +0530
tdf#94205 Use o3tl::make_unique instead of new + std::move
removed std::unique_ptr and std::move to make_unique in vcl/opengl/FixedTextureAtlas.cxx
Change-Id: I7cbff152c3daae68a18ec08607cac030a1f4af8e
Reviewed-on: https://gerrit.libreoffice.org/25613
Tested-by: Jenkins <ci at libreoffice.org>
Reviewed-by: Stephan Bergmann <sbergman at redhat.com>
diff --git a/vcl/opengl/FixedTextureAtlas.cxx b/vcl/opengl/FixedTextureAtlas.cxx
index 87c5bb1..420121d 100644
--- a/vcl/opengl/FixedTextureAtlas.cxx
+++ b/vcl/opengl/FixedTextureAtlas.cxx
@@ -17,6 +17,8 @@
#include "opengl/FixedTextureAtlas.hxx"
+#include <o3tl/make_unique.hxx>
+
struct FixedTexture
{
ImplOpenGLTexture* mpTexture;
@@ -83,11 +85,9 @@ void FixedTextureAtlasManager::CreateNewTexture()
{
int nTextureWidth = mWidthFactor * mSubTextureSize;
int nTextureHeight = mHeightFactor * mSubTextureSize;
- std::unique_ptr<FixedTexture> pFixedTexture(
- new FixedTexture(new ImplOpenGLTexture(nTextureWidth, nTextureHeight, true),
+ maFixedTextures.push_back(o3tl::make_unique<FixedTexture>(new ImplOpenGLTexture(nTextureWidth, nTextureHeight, true),
mWidthFactor * mHeightFactor));
- maFixedTextures.push_back(std::move(pFixedTexture));
}
OpenGLTexture FixedTextureAtlasManager::Reserve(int nWidth, int nHeight)
More information about the Libreoffice-commits
mailing list