Bug 1341511 - Replace std::map::empty() call with correct std::map::clear() call to remove all elements from the map r=dvander,jchen
authorRandall Barker <rbarker@mozilla.com>
Tue, 28 Feb 2017 12:34:16 -0800
changeset 374385 f3b989e0a7b90950c47dd72425c7f669f027c685
parent 374384 52a406607871931b102f6dc76ce5eaff75cd8914
child 374386 e91de6fb2b3dce9c932428265b0fdb630ea470d7
child 374542 ed9b6ec1a0e8789b793bccf1426113e1c78f9ad5
push id10863
push userjlorenzo@mozilla.com
push dateMon, 06 Mar 2017 23:02:23 +0000
treeherdermozilla-aurora@0931190cd725 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersdvander, jchen
bugs1341511
milestone54.0a1
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
--- a/gfx/layers/ipc/UiCompositorControllerChild.cpp
+++ b/gfx/layers/ipc/UiCompositorControllerChild.cpp
@@ -54,17 +54,17 @@ DoCachedResize()
 {
   MOZ_ASSERT(sChild);
   MOZ_ASSERT(sChild->IsOnUiThread());
 
   for (auto& cache : sResizeCache) {
     sChild->SendResumeAndResize(cache.first, cache.second.mSurfaceWidth, cache.second.mSurfaceHeight);
   }
 
-  sResizeCache.empty();
+  sResizeCache.clear();
 }
 
 } // namespace
 
 UiCompositorControllerChild::UiCompositorControllerChild(RefPtr<nsThread> aThread, const uint64_t& aProcessToken)
  : mUiThread(aThread),
    mProcessToken(aProcessToken)
 {