Bug 479968 - CreateSVGNumber should create a number initialised to 0. r+sr=roc
authorRobert Longson <longsonr@gmail.com>
Wed, 25 Feb 2009 10:08:44 +0000
changeset 25495 53ce1b7d971e8e18ed14a0c5229030bdbd7adc89
parent 25494 8eba35e62d920cca2ab8a967bc24bff86dc9460e
child 25496 07335395bc6f8aa6224f1ed12e302d60c3a9651a
push id5576
push userlongsonr@gmail.com
push dateWed, 25 Feb 2009 10:09:07 +0000
treeherdermozilla-central@53ce1b7d971e [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
bugs479968
milestone1.9.2a1pre
Bug 479968 - CreateSVGNumber should create a number initialised to 0. r+sr=roc
content/svg/content/src/nsSVGNumber2.cpp
--- a/content/svg/content/src/nsSVGNumber2.cpp
+++ b/content/svg/content/src/nsSVGNumber2.cpp
@@ -38,17 +38,18 @@
 #include "nsTextFormatter.h"
 #include "prdtoa.h"
 
 class DOMSVGNumber : public nsIDOMSVGNumber
 {
 public:
   NS_DECL_ISUPPORTS
 
-  DOMSVGNumber() {}
+  DOMSVGNumber() 
+    : mVal(0) {}
     
   NS_IMETHOD GetValue(float* aResult)
     { *aResult = mVal; return NS_OK; }
   NS_IMETHOD SetValue(float aValue)
     { NS_ENSURE_FINITE(aValue, NS_ERROR_ILLEGAL_VALUE);
       mVal = aValue;
       return NS_OK; }