diff --git a/Img3D/Plot/BodyPlotter.cpp b/Img3D/Plot/BodyPlotter.cpp
index 00d0da401848c9773a6b0edb30bab3fc4808abd9..f6cff7fd82b5fd7ee19e673a5688df26ea080f89 100644
--- a/Img3D/Plot/BodyPlotter.cpp
+++ b/Img3D/Plot/BodyPlotter.cpp
@@ -21,7 +21,7 @@ BodyPlotter::BodyPlotter(Geometry const& geometry)
 {
     initializeOpenGLFunctions();
 
-    const auto& mesh = geometry.mesh();
+    const QVector<Geometry::VertexAndNormal>& mesh = geometry.mesh();
     m_vertexCount = mesh.count();
 
     QOpenGLVertexArrayObject::Binder dummy(&m_vao);
diff --git a/Img3D/View/Shader.cpp b/Img3D/View/Shader.cpp
index 204da2c5ff4e5639a6328050527371d1a96bc48f..2b53affedb09ee517364036cc1c4bb5333d67879 100644
--- a/Img3D/View/Shader.cpp
+++ b/Img3D/View/Shader.cpp
@@ -43,7 +43,7 @@ void Shader::init()
         return;
     doInit = false;
 
-    auto ok = addShaderFromSourceFile(QOpenGLShader::Vertex, ":/shaders/vertex_shader.vert");
+    bool ok = addShaderFromSourceFile(QOpenGLShader::Vertex, ":/shaders/vertex_shader.vert");
     ASSERT(ok);
 
     ok = addShaderFromSourceFile(QOpenGLShader::Fragment, ":/shaders/fragment_shader.frag");