# HG changeset patch # User David Major # Date 1532635350 14400 # Node ID 13baffe17d22419146e4a8e42712f0cd679fc26e # Parent bb8f65200ecc684360a5d6d7c3e7ffe1f2189e78 Bug 1478020 - Fix some -Wmicrosoft-template in the interceptor. r=aklotz diff --git a/mozglue/misc/interceptor/PatcherDetour.h b/mozglue/misc/interceptor/PatcherDetour.h --- a/mozglue/misc/interceptor/PatcherDetour.h +++ b/mozglue/misc/interceptor/PatcherDetour.h @@ -18,16 +18,18 @@ } while (0) namespace mozilla { namespace interceptor { template class WindowsDllDetourPatcher final : public WindowsDllPatcherBase { + typedef typename VMPolicy::MMPolicyT MMPolicyT; + public: template explicit WindowsDllDetourPatcher(Args... aArgs) : WindowsDllPatcherBase(mozilla::Forward(aArgs)...) { } ~WindowsDllDetourPatcher() diff --git a/mozglue/misc/interceptor/PatcherNopSpace.h b/mozglue/misc/interceptor/PatcherNopSpace.h --- a/mozglue/misc/interceptor/PatcherNopSpace.h +++ b/mozglue/misc/interceptor/PatcherNopSpace.h @@ -12,16 +12,18 @@ #include "mozilla/interceptor/PatcherBase.h" namespace mozilla { namespace interceptor { template class WindowsDllNopSpacePatcher final : public WindowsDllPatcherBase { + typedef typename VMPolicy::MMPolicyT MMPolicyT; + // For remembering the addresses of functions we've patched. mozilla::Vector mPatchedFns; public: template explicit WindowsDllNopSpacePatcher(Args... aArgs) : WindowsDllPatcherBase(mozilla::Forward(aArgs)...) {}