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 345358 f3b989e0a7b90950c47dd72425c7f669f027c685
parent 345357 52a406607871931b102f6dc76ce5eaff75cd8914
child 345359 e91de6fb2b3dce9c932428265b0fdb630ea470d7
child 345515 ed9b6ec1a0e8789b793bccf1426113e1c78f9ad5
push id31436
push userkwierso@gmail.com
push dateThu, 02 Mar 2017 01:18:52 +0000
treeherdermozilla-central@e91de6fb2b3d [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersdvander, jchen
bugs1341511
milestone54.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
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)
 {