diff --git a/dom/workers/RuntimeService.cpp b/dom/workers/RuntimeService.cpp index 3fda0a78fd23..1dd4171b0a74 100644 --- a/dom/workers/RuntimeService.cpp +++ b/dom/workers/RuntimeService.cpp @@ -167,7 +167,7 @@ struct PrefTraits; template <> struct PrefTraits { - typedef bool PrefValueType; + using PrefValueType = bool; static const PrefValueType kDefaultValue = false; @@ -184,7 +184,7 @@ struct PrefTraits { template <> struct PrefTraits { - typedef int32_t PrefValueType; + using PrefValueType = int32_t; static inline PrefValueType Get(const char* aPref) { AssertIsOnMainThread(); @@ -203,7 +203,7 @@ T GetWorkerPref(const nsACString& aPref, bool* aPresent = nullptr) { AssertIsOnMainThread(); - typedef PrefTraits PrefHelper; + using PrefHelper = PrefTraits; T result; bool present = true; diff --git a/dom/workers/WorkerLoadInfo.cpp b/dom/workers/WorkerLoadInfo.cpp index 7cc161a7acca..a0277e9ce16a 100644 --- a/dom/workers/WorkerLoadInfo.cpp +++ b/dom/workers/WorkerLoadInfo.cpp @@ -65,7 +65,7 @@ class MainThreadReleaseRunnable final : public Runnable { // Specialize this if there's some class that has multiple nsISupports bases. template struct ISupportsBaseInfo { - typedef T ISupportsBase; + using ISupportsBase = T; }; template