From 1de7435d3527697e41a05a32a7f7d7ff54885104 Mon Sep 17 00:00:00 2001 From: Randall Barker Date: Tue, 28 Feb 2017 12:34:16 -0800 Subject: [PATCH] Bug 1341511 - Replace std::map::empty() call with correct std::map::clear() call to remove all elements from the map r=dvander,jchen --- gfx/layers/ipc/UiCompositorControllerChild.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gfx/layers/ipc/UiCompositorControllerChild.cpp b/gfx/layers/ipc/UiCompositorControllerChild.cpp index 216c5accba9b..2cddcc5dc640 100644 --- a/gfx/layers/ipc/UiCompositorControllerChild.cpp +++ b/gfx/layers/ipc/UiCompositorControllerChild.cpp @@ -59,7 +59,7 @@ DoCachedResize() sChild->SendResumeAndResize(cache.first, cache.second.mSurfaceWidth, cache.second.mSurfaceHeight); } - sResizeCache.empty(); + sResizeCache.clear(); } } // namespace