Bug 1188209 - Fix more constructors in memory; r=njn
authorEhsan Akhgari <ehsan@mozilla.com>
Mon, 27 Jul 2015 21:16:24 -0400
changeset 286601 21192c518c8f88082ca4a185e92097ade82c1fa7
parent 286600 c0ccf9625fe3630eac2f49416359c0771e559b97
child 286602 848fe007da648ac24effd4504cf388f5ff5607d8
push id5067
push userraliiev@mozilla.com
push dateMon, 21 Sep 2015 14:04:52 +0000
treeherdermozilla-beta@14221ffe5b2f [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersnjn
bugs1188209
milestone42.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 1188209 - Fix more constructors in memory; r=njn
memory/replace/logalloc/replay/Replay.cpp
--- a/memory/replace/logalloc/replay/Replay.cpp
+++ b/memory/replace/logalloc/replay/Replay.cpp
@@ -121,17 +121,17 @@ public:
   Buffer() : mBuf(nullptr), mLength(0) {}
 
   Buffer(const void* aBuf, size_t aLength)
     : mBuf(reinterpret_cast<const char*>(aBuf)), mLength(aLength)
   {}
 
   /* Constructor for string literals. */
   template <size_t Size>
-  Buffer(const char (&aStr)[Size])
+  explicit Buffer(const char (&aStr)[Size])
     : mBuf(aStr), mLength(Size - 1)
   {}
 
   /* Returns a sub-buffer up-to but not including the given aNeedle character.
    * The "parent" buffer itself is altered to begin after the aNeedle
    * character.
    * If the aNeedle character is not found, return the entire buffer, and empty
    * the "parent" buffer. */