Removed the GLCamera::FreeToken name

Tue, 14 Feb 2017 13:02:05 +0200

author
Teemu Piippo <teemu@hecknology.net>
date
Tue, 14 Feb 2017 13:02:05 +0200
changeset 1140
c5791a3aa1ba
parent 1139
51303023d651
child 1141
7dc2c981937e

Removed the GLCamera::FreeToken name

src/glcamera.cpp file | annotate | diff | comparison | revisions
src/glcamera.h file | annotate | diff | comparison | revisions
--- a/src/glcamera.cpp	Tue Feb 14 12:58:53 2017 +0200
+++ b/src/glcamera.cpp	Tue Feb 14 13:02:05 2017 +0200
@@ -35,7 +35,7 @@
 /*
  * Constructs a free camera.
  */
-GLCamera::GLCamera(QString name, FreeToken) :
+GLCamera::GLCamera(QString name, decltype(FreeCamera)) :
     m_name {name},
     m_isFree {true} {}
 
--- a/src/glcamera.h	Tue Feb 14 12:58:53 2017 +0200
+++ b/src/glcamera.h	Tue Feb 14 13:02:05 2017 +0200
@@ -41,10 +41,10 @@
 
 public:
 	// This is used to construct the free camera
-	enum FreeToken { FreeCamera };
+	enum { FreeCamera };
 
 	GLCamera(QString name, FixedCameraParameters&& bag);
-	GLCamera(QString name, FreeToken);
+	GLCamera(QString name, decltype(FreeCamera));
 
 	Axis axisX() const;
 	Axis axisY() const;

mercurial