Bug 1547455 - constructor for gfxFontCacheExpirationTracker should be explicit r=jfkthame
authorlongsonr <longsonr@gmail.com>
Sun, 28 Apr 2019 07:36:59 +0100
changeset 530512 1d7625b649a66f10d441c75ece93d3c82a874389
parent 530511 3618a8e453b49d2e596487a1846de42a69add9f6
child 530513 3eb7623b5e63b37823d5e9c562d56e586604c823
child 530519 729f59649b3f2530acdc92a9efac191deabb03fa
push id11265
push userffxbld-merge
push dateMon, 13 May 2019 10:53:39 +0000
treeherdermozilla-beta@77e0fe8dbdd3 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjfkthame
bugs1547455
milestone68.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 1547455 - constructor for gfxFontCacheExpirationTracker should be explicit r=jfkthame
gfx/thebes/gfxFont.h
--- a/gfx/thebes/gfxFont.h
+++ b/gfx/thebes/gfxFont.h
@@ -280,17 +280,17 @@ class gfxFontCacheExpirationTracker
   Lock& GetMutex() override {
     mozilla::AssertIsMainThreadOrServoFontMetricsLocked();
     return mLock;
   }
 
  public:
   enum { FONT_TIMEOUT_SECONDS = 10 };
 
-  gfxFontCacheExpirationTracker(nsIEventTarget* aEventTarget)
+  explicit gfxFontCacheExpirationTracker(nsIEventTarget* aEventTarget)
       : ExpirationTrackerImpl<gfxFont, 3, Lock, AutoLock>(
             FONT_TIMEOUT_SECONDS * 1000, "gfxFontCache", aEventTarget) {}
 };
 
 class gfxFontCache final : private gfxFontCacheExpirationTracker {
  public:
   enum { SHAPED_WORD_TIMEOUT_SECONDS = 60 };