Bug 1116753 - Add 'explicit' to the nsRootBoxFrame one-arg ctor to fix static analysis failure. r=me
authorMats Palmgren <mats@mozilla.com>
Tue, 06 Jan 2015 10:07:04 +0000
changeset 248035 3405b354e2f1e49513ffb49b24a8106b4b3d06a9
parent 248034 426055dc106ab9e557bd692c2a4e16a946a861b0
child 248036 b25b5bedc53a28d5fbe6639fb38662483ce94c38
push id4489
push userraliiev@mozilla.com
push dateMon, 23 Feb 2015 15:17:55 +0000
treeherdermozilla-beta@fd7c3dc24146 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersme
bugs1116753
milestone37.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1116753 - Add 'explicit' to the nsRootBoxFrame one-arg ctor to fix static analysis failure. r=me
layout/xul/nsRootBoxFrame.cpp
--- a/layout/xul/nsRootBoxFrame.cpp
+++ b/layout/xul/nsRootBoxFrame.cpp
@@ -41,17 +41,17 @@ nsIRootBox::GetRootBox(nsIPresShell* aSh
   return rootBox;
 }
 
 class nsRootBoxFrame : public nsBoxFrame, public nsIRootBox {
 public:
 
   friend nsIFrame* NS_NewBoxFrame(nsIPresShell* aPresShell, nsStyleContext* aContext);
 
-  nsRootBoxFrame(nsStyleContext *aContext);
+  explicit nsRootBoxFrame(nsStyleContext* aContext);
 
   NS_DECL_QUERYFRAME
   NS_DECL_FRAMEARENA_HELPERS
 
   virtual nsPopupSetFrame* GetPopupSetFrame() MOZ_OVERRIDE;
   virtual void SetPopupSetFrame(nsPopupSetFrame* aPopupSet) MOZ_OVERRIDE;
   virtual nsIContent* GetDefaultTooltip() MOZ_OVERRIDE;
   virtual void SetDefaultTooltip(nsIContent* aTooltip) MOZ_OVERRIDE;