Bug 1060999 - Fix more bad implicit constructors in intl; r=smontagu
authorEhsan Akhgari <ehsan@mozilla.com>
Mon, 01 Sep 2014 17:43:50 -0400
changeset 202895 0c07ef5e87c084c4bbf81ee6f71cc0f4ca03e49c
parent 202894 e8298383cfe75bd03bb6f4102e81e9df976471fa
child 202896 c10c8d74bd5b5cdc34889b893eede84c5923b2ae
push id27413
push userphilringnalda@gmail.com
push dateTue, 02 Sep 2014 05:46:30 +0000
treeherdermozilla-central@c360f3d1c00d [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerssmontagu
bugs1060999
milestone34.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 1060999 - Fix more bad implicit constructors in intl; r=smontagu
intl/unicharutil/util/ICUUtils.h
--- a/intl/unicharutil/util/ICUUtils.h
+++ b/intl/unicharutil/util/ICUUtils.h
@@ -33,17 +33,17 @@ class ICUUtils
 public:
 
   /**
    * This class is used to encapsulate an nsIContent object to allow lazy
    * iteration over its primary and fallback BCP 47 language tags.
    */
   class LanguageTagIterForContent {
   public:
-    LanguageTagIterForContent(nsIContent* aContent)
+    explicit LanguageTagIterForContent(nsIContent* aContent)
       : mContent(aContent)
       , mCurrentFallbackIndex(-1)
     {}
 
     /**
      * Used to iterate over the nsIContent object's primary language tag and
      * its fallbacks tags. The following sources of language tag information
      * are tried in turn: