From f239d701acf39c0b6215d12ba4ccaeaadb190aff Mon Sep 17 00:00:00 2001 From: Brian Smith Date: Thu, 8 Jan 2015 15:42:38 -0800 Subject: [PATCH] Bug 1119072, Part 16: Replace uses of hash_set with unodered_set (gfx), r=bas --HG-- extra : rebase_source : 6fe532f999372f71b7e544231b4727c86aa34d70 --- gfx/2d/DrawEventRecorder.h | 4 ++-- gfx/2d/DrawTargetD2D.h | 8 -------- gfx/2d/DrawTargetD2D1.h | 8 -------- 3 files changed, 2 insertions(+), 18 deletions(-) diff --git a/gfx/2d/DrawEventRecorder.h b/gfx/2d/DrawEventRecorder.h index a74cbb4fa44..e297a58710e 100644 --- a/gfx/2d/DrawEventRecorder.h +++ b/gfx/2d/DrawEventRecorder.h @@ -12,7 +12,7 @@ #include #if defined(_MSC_VER) -#include +#include #else #include #endif @@ -53,7 +53,7 @@ protected: virtual void Flush() = 0; #if defined(_MSC_VER) - typedef stdext::hash_set ObjectSet; + typedef std::unordered_set ObjectSet; #else typedef std::set ObjectSet; #endif diff --git a/gfx/2d/DrawTargetD2D.h b/gfx/2d/DrawTargetD2D.h index 3842d67d50b..0acb88e9d67 100644 --- a/gfx/2d/DrawTargetD2D.h +++ b/gfx/2d/DrawTargetD2D.h @@ -14,11 +14,7 @@ #include #include -#ifdef _MSC_VER -#include -#else #include -#endif struct IDWriteFactory; @@ -165,11 +161,7 @@ private: friend class AutoSaveRestoreClippedOut; friend class SourceSurfaceD2DTarget; -#ifdef _MSC_VER - typedef stdext::hash_set TargetSet; -#else typedef std::unordered_set TargetSet; -#endif bool InitD2DRenderTarget(); void PrepareForDrawing(ID2D1RenderTarget *aRT); diff --git a/gfx/2d/DrawTargetD2D1.h b/gfx/2d/DrawTargetD2D1.h index 6fd71582bf6..d76415a48ad 100644 --- a/gfx/2d/DrawTargetD2D1.h +++ b/gfx/2d/DrawTargetD2D1.h @@ -15,11 +15,7 @@ #include #include -#ifdef _MSC_VER -#include -#else #include -#endif struct IDWriteFactory; @@ -154,11 +150,7 @@ public: private: friend class SourceSurfaceD2D1; -#ifdef _MSC_VER - typedef stdext::hash_set TargetSet; -#else typedef std::unordered_set TargetSet; -#endif // This function will mark the surface as changing, and make sure any // copy-on-write snapshots are notified.