Bug 1484496: Follow-up: Fix more NoQueryNeeded assertions. r=bustage
authorKris Maglione <maglione.k@gmail.com>
Thu, 23 Aug 2018 17:15:41 -0700
changeset 481519 d1049dde16ddb13fbb7b05d362a028a9aa24839f
parent 481518 7d4ae67397e207d28f6fa51cadef94a14d482d85
child 481520 602fa2f2e75da226a632f65700c9a1db8baf89ae
push id232
push userfmarier@mozilla.com
push dateWed, 05 Sep 2018 20:45:54 +0000
reviewersbustage
bugs1484496
milestone63.0a1
Bug 1484496: Follow-up: Fix more NoQueryNeeded assertions. r=bustage
netwerk/cache2/CacheFileIOManager.cpp
--- a/netwerk/cache2/CacheFileIOManager.cpp
+++ b/netwerk/cache2/CacheFileIOManager.cpp
@@ -3849,17 +3849,17 @@ CacheFileIOManager::GetDoomedFile(nsIFil
 
 nsresult
 CacheFileIOManager::IsEmptyDirectory(nsIFile *aFile, bool *_retval)
 {
   MOZ_ASSERT(mIOThread->IsCurrentThread());
 
   nsresult rv;
 
-  nsCOMPtr<nsISimpleEnumerator> enumerator;
+  nsCOMPtr<nsIDirectoryEnumerator> enumerator;
   rv = aFile->GetDirectoryEntries(getter_AddRefs(enumerator));
   NS_ENSURE_SUCCESS(rv, rv);
 
   bool hasMoreElements = false;
   rv = enumerator->HasMoreElements(&hasMoreElements);
   NS_ENSURE_SUCCESS(rv, rv);
 
   *_retval = !hasMoreElements;