From 8037a4bf79b8ae49162c2b6f099d62ec17a7f283 Mon Sep 17 00:00:00 2001 From: Gil Date: Thu, 24 May 2018 11:00:23 -0700 Subject: Replace Objective-C assertions with C++ assertions (#1327) * Migrate FSTFail to HARD_FAIL * FSTCFail -> HARD_FAIL * FSTCAssert -> HARD_ASSERT * FSTAssert -> HARD_ASSERT * Replace FSTAssert with NSAssert in dead Objective-C code * Remove FSTAssert.h --- Firestore/Source/Local/FSTLevelDBMigrations.mm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'Firestore/Source/Local/FSTLevelDBMigrations.mm') diff --git a/Firestore/Source/Local/FSTLevelDBMigrations.mm b/Firestore/Source/Local/FSTLevelDBMigrations.mm index fefd0f7..bd72c97 100644 --- a/Firestore/Source/Local/FSTLevelDBMigrations.mm +++ b/Firestore/Source/Local/FSTLevelDBMigrations.mm @@ -21,8 +21,8 @@ #import "Firestore/Protos/objc/firestore/local/Target.pbobjc.h" #import "Firestore/Source/Local/FSTLevelDBKey.h" #import "Firestore/Source/Local/FSTLevelDBQueryCache.h" -#import "Firestore/Source/Util/FSTAssert.h" +#include "Firestore/core/src/firebase/firestore/util/hard_assert.h" #include "absl/strings/match.h" #include "leveldb/write_batch.h" @@ -80,8 +80,8 @@ static void AddTargetCount(LevelDbTransaction *transaction) { FSTPBTargetGlobal *targetGlobal = [FSTLevelDBQueryCache readTargetMetadataWithTransaction:transaction]; - FSTCAssert(targetGlobal != nil, - @"We should have a metadata row as it was added in an earlier migration"); + HARD_ASSERT(targetGlobal != nil, + "We should have a metadata row as it was added in an earlier migration"); targetGlobal.targetCount = count; transaction->Put([FSTLevelDBTargetGlobalKey key], targetGlobal); } -- cgit v1.2.3