Skip to content

Commit 83f297e

Browse files
jonsimantova-maurice
authored andcommitted
Fix crash in auth tests by removing implicit User constructor from AuthData
pointer. PiperOrigin-RevId: 246573138
1 parent 0f683c9 commit 83f297e

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

auth/src/data.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,6 @@ struct AuthData {
9090

9191
app = nullptr;
9292
auth = nullptr;
93-
current_user = nullptr;
9493
auth_impl = nullptr;
9594
user_impl = nullptr;
9695
listener_impl = nullptr;

auth/src/include/firebase/auth/user.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -439,7 +439,7 @@ class User : public UserInfoInterface {
439439
private:
440440
friend struct AuthData;
441441
// Only exists in AuthData. Access via @ref Auth::CurrentUser().
442-
User(AuthData* auth_data) : auth_data_(auth_data) {}
442+
explicit User(AuthData* auth_data) : auth_data_(auth_data) {}
443443

444444
#if defined(INTERNAL_EXPERIMENTAL)
445445
// Doxygen should not make docs for this function.

0 commit comments

Comments
 (0)