Bug 1341511 - Replace std::map::empty() call with correct std::map::clear() call to remove all elements from the map. r=dvander, r=jchen, a=lizzard
authorRandall Barker <rbarker@mozilla.com>
Tue, 28 Feb 2017 12:34:16 -0800
changeset 378876 3fc56f904d53def46fb38a7b7b071e23f3d58347
parent 378875 ff92ddc470715eeb1952b4ef7242f85c9836dcc0
child 378877 b0097ac9fa56a110dea1375b0139decfc9c9533a
push id1419
push userjlund@mozilla.com
push dateMon, 10 Apr 2017 20:44:07 +0000
treeherdermozilla-release@5e6801b73ef6 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersdvander, jchen, lizzard
bugs1341511
milestone53.0a2
Bug 1341511 - Replace std::map::empty() call with correct std::map::clear() call to remove all elements from the map. r=dvander, r=jchen, a=lizzard
gfx/layers/ipc/UiCompositorControllerChild.cpp
--- a/gfx/layers/ipc/UiCompositorControllerChild.cpp
+++ b/gfx/layers/ipc/UiCompositorControllerChild.cpp
@@ -52,17 +52,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)
 {