[Libreoffice-commits] core.git: slideshow/source
Stephan Bergmann
sbergman at redhat.com
Thu Nov 19 13:46:13 PST 2015
slideshow/source/engine/OGLTrans/generic/OGLTrans_TransitionImpl.cxx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit ff522704109078a0cde844c74d608137b7c70f42
Author: Stephan Bergmann <sbergman at redhat.com>
Date: Thu Nov 19 22:45:45 2015 +0100
loplugin:redundantcast
Change-Id: I89281db92f9b75e972313a95c33473d7649a9bef
diff --git a/slideshow/source/engine/OGLTrans/generic/OGLTrans_TransitionImpl.cxx b/slideshow/source/engine/OGLTrans/generic/OGLTrans_TransitionImpl.cxx
index 2a13ca1..0298eba 100644
--- a/slideshow/source/engine/OGLTrans/generic/OGLTrans_TransitionImpl.cxx
+++ b/slideshow/source/engine/OGLTrans/generic/OGLTrans_TransitionImpl.cxx
@@ -212,7 +212,7 @@ static void display_primitives(const Primitives_t& primitives, double nTime, dou
CHECK_GL_ERROR();
glBufferData(GL_ARRAY_BUFFER, size, nullptr, GL_STREAM_DRAW);
CHECK_GL_ERROR();
- Vertex *buf = reinterpret_cast<Vertex*>(glMapBuffer(GL_ARRAY_BUFFER, GL_WRITE_ONLY));
+ Vertex *buf = static_cast<Vertex*>(glMapBuffer(GL_ARRAY_BUFFER, GL_WRITE_ONLY));
std::vector<int> first_elements;
int last_pos = 0;
More information about the Libreoffice-commits
mailing list