From 5fdcf72f124ad4cdd65374b90282ceff908efa8c Mon Sep 17 00:00:00 2001 From: Ben Turner Date: Thu, 21 May 2015 16:28:23 -0700 Subject: [PATCH] Bug 858680, Prevent unused variable warning on opt builds, r=bustage. --HG-- extra : rebase_source : abec6bc1896d17d07abe3a885861002c5762d6ef --- dom/indexedDB/ActorsParent.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/dom/indexedDB/ActorsParent.cpp b/dom/indexedDB/ActorsParent.cpp index f9c286516b15..79db34d6fcef 100644 --- a/dom/indexedDB/ActorsParent.cpp +++ b/dom/indexedDB/ActorsParent.cpp @@ -8170,20 +8170,24 @@ struct QuotaClient::MultipleMaintenanceInfo final : MaintenanceInfoBase(aGroup, aOrigin, aPersistenceType) , mDatabasePaths(Move(aDatabasePaths)) { +#ifdef DEBUG MOZ_ASSERT(!mDatabasePaths.IsEmpty()); for (const nsString& databasePath : mDatabasePaths) { MOZ_ASSERT(!databasePath.IsEmpty()); } +#endif } MultipleMaintenanceInfo(MultipleMaintenanceInfo&& aOther) : MaintenanceInfoBase(Move(aOther)) , mDatabasePaths(Move(aOther.mDatabasePaths)) { +#ifdef DEBUG MOZ_ASSERT(!mDatabasePaths.IsEmpty()); for (const nsString& databasePath : mDatabasePaths) { MOZ_ASSERT(!databasePath.IsEmpty()); } +#endif } MultipleMaintenanceInfo(const MultipleMaintenanceInfo& aOther) = delete;