From 56b5466f014d9f7c3662544713bd53670cd8e32f Mon Sep 17 00:00:00 2001 From: Yann Herklotz Date: Wed, 23 Aug 2017 20:33:34 +0100 Subject: Applied modernize rules and fixed build. Applied clang-tidy modernize rules and fixed the CMakeLists.txt file so that it also linked against the SDL2 library. --- src/spritebatch.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/spritebatch.cpp') diff --git a/src/spritebatch.cpp b/src/spritebatch.cpp index 8e64aa5e..f4767829 100644 --- a/src/spritebatch.cpp +++ b/src/spritebatch.cpp @@ -28,7 +28,7 @@ Glyph::Glyph(GLuint texture, float depth, const Vertex& top_left, RenderBatch::RenderBatch(GLint offset, GLsizei num_vertices, GLuint texture) : num_vertices_(num_vertices), offset_(offset), texture_(texture) {} -SpriteBatch::SpriteBatch() {} +SpriteBatch::SpriteBatch() = default; SpriteBatch::~SpriteBatch() { if (vao_ != 0) glDeleteVertexArrays(1, &vao_); -- cgit