@@ -86,18 +86,18 @@ class Promise {
8686 return ;
8787 }
8888
89- Error error_code = Error::kUnknown ;
89+ Error error_code = Error::kErrorUnknown ;
9090 switch (result_code) {
9191 case util::kFutureResultFailure :
9292 // When failed, result is the exception raised.
9393 error_code = FirebaseFirestoreExceptionInternal::ToErrorCode (
9494 this ->firestore_ ->app ()->GetJNIEnv (), result);
9595 break ;
9696 case util::kFutureResultCancelled :
97- error_code = Error::kCancelled ;
97+ error_code = Error::kErrorCancelled ;
9898 break ;
9999 default :
100- error_code = Error::kUnknown ;
100+ error_code = Error::kErrorUnknown ;
101101 FIREBASE_ASSERT_MESSAGE (false , " unknown FutureResult %d" ,
102102 result_code);
103103 break ;
@@ -130,10 +130,10 @@ class Promise {
130130 PublicT future_result = FirestoreInternal::Wrap<InternalT>(
131131 new InternalT (this ->firestore_ , result));
132132
133- this ->impl_ ->CompleteWithResult (this ->handle_ , Error::kOk ,
133+ this ->impl_ ->CompleteWithResult (this ->handle_ , Error::kErrorOk ,
134134 /* error_msg=*/ " " , future_result);
135135 if (this ->completion_ != nullptr ) {
136- this ->completion_ ->CompleteWith (Error::kOk , /* error_message*/ " " ,
136+ this ->completion_ ->CompleteWith (Error::kErrorOk , /* error_message*/ " " ,
137137 &future_result);
138138 }
139139 delete this ;
@@ -146,9 +146,9 @@ class Promise {
146146 using CompleterBase<void >::CompleterBase;
147147
148148 void SucceedWithResult (jobject result) override {
149- this ->impl_ ->Complete (this ->handle_ , Error::kOk , /* error_msg=*/ " " );
149+ this ->impl_ ->Complete (this ->handle_ , Error::kErrorOk , /* error_msg=*/ " " );
150150 if (this ->completion_ != nullptr ) {
151- this ->completion_ ->CompleteWith (Error::kOk , /* error_message*/ " " ,
151+ this ->completion_ ->CompleteWith (Error::kErrorOk , /* error_message*/ " " ,
152152 nullptr );
153153 }
154154 delete this ;
0 commit comments