diff mbox

[Branch,~glmark2-dev/glmark2/trunk] Rev 228: SceneIdeas, SceneTexture: Properly initialize member variables.

Message ID 20120704102910.10897.49183.launchpad@ackee.canonical.com
State Accepted
Headers show

Commit Message

alexandros.frantzis@linaro.org July 4, 2012, 10:29 a.m. UTC
------------------------------------------------------------
revno: 228
committer: Alexandros Frantzis <alexandros.frantzis@linaro.org>
branch nick: trunk
timestamp: Wed 2012-07-04 13:07:42 +0300
message:
  SceneIdeas,SceneTexture: Properly initialize member variables.
modified:
  src/scene-ideas.cpp
  src/scene-texture.cpp


--
lp:glmark2
https://code.launchpad.net/~glmark2-dev/glmark2/trunk

You are subscribed to branch lp:glmark2.
To unsubscribe from this branch go to https://code.launchpad.net/~glmark2-dev/glmark2/trunk/+edit-subscription
diff mbox

Patch

=== modified file 'src/scene-ideas.cpp'
--- src/scene-ideas.cpp	2012-05-22 12:28:40 +0000
+++ src/scene-ideas.cpp	2012-07-04 10:07:42 +0000
@@ -200,7 +200,7 @@ 
 }
 
 SceneIdeas::SceneIdeas(Canvas& canvas) :
-    Scene(canvas, "ideas")
+    Scene(canvas, "ideas"), priv_(0)
 {
     options_["speed"] = Scene::Option("speed", "duration",
                                       "Time coefficient (1.0 is \"wall clock\" speed, <1.0 is slower, >1.0 is faster).  A special value of \"duration\" computes this as a function of the \"duration\" option");

=== modified file 'src/scene-texture.cpp'
--- src/scene-texture.cpp	2012-06-26 22:41:07 +0000
+++ src/scene-texture.cpp	2012-07-04 10:07:42 +0000
@@ -38,7 +38,8 @@ 
 using std::string;
 
 SceneTexture::SceneTexture(Canvas &pCanvas) :
-    Scene(pCanvas, "texture")
+    Scene(pCanvas, "texture"), radius_(0.0),
+    orientModel_(false), orientationAngle_(0.0)
 {
     const ModelMap& modelMap = Model::find_models();
     string optionDesc("Which model to use [");