aboutsummaryrefslogtreecommitdiffhomepage
path: root/Firestore/Source/Model/FSTDocumentKey.mm
diff options
context:
space:
mode:
authorGravatar Gil <mcg@google.com>2018-05-24 11:00:23 -0700
committerGravatar GitHub <noreply@github.com>2018-05-24 11:00:23 -0700
commit8037a4bf79b8ae49162c2b6f099d62ec17a7f283 (patch)
tree5a15df8664abbcf3e63479fa3e7560fd8c2fbe9e /Firestore/Source/Model/FSTDocumentKey.mm
parentde4fe203525072babcdec444a06e42e77f0aa714 (diff)
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
Diffstat (limited to 'Firestore/Source/Model/FSTDocumentKey.mm')
-rw-r--r--Firestore/Source/Model/FSTDocumentKey.mm6
1 files changed, 3 insertions, 3 deletions
diff --git a/Firestore/Source/Model/FSTDocumentKey.mm b/Firestore/Source/Model/FSTDocumentKey.mm
index d29df86..ad3968e 100644
--- a/Firestore/Source/Model/FSTDocumentKey.mm
+++ b/Firestore/Source/Model/FSTDocumentKey.mm
@@ -20,9 +20,9 @@
#include <utility>
#import "Firestore/Source/Core/FSTFirestoreClient.h"
-#import "Firestore/Source/Util/FSTAssert.h"
#include "Firestore/core/src/firebase/firestore/model/resource_path.h"
+#include "Firestore/core/src/firebase/firestore/util/hard_assert.h"
#include "Firestore/core/src/firebase/firestore/util/hashing.h"
#include "Firestore/core/src/firebase/firestore/util/string_apple.h"
@@ -53,8 +53,8 @@ NS_ASSUME_NONNULL_BEGIN
/** Designated initializer. */
- (instancetype)initWithPath:(ResourcePath)path {
- FSTAssert([FSTDocumentKey isDocumentKey:path], @"invalid document key path: %s",
- path.CanonicalString().c_str());
+ HARD_ASSERT([FSTDocumentKey isDocumentKey:path], "invalid document key path: %s",
+ path.CanonicalString());
if (self = [super init]) {
_path = path;