Skip to content

Commit 64f61d9

Browse files
committed
Test change for new DocumentRefernce.AddSnapshotListener method signature.
1 parent c8c0a4a commit 64f61d9

File tree

1 file changed

+1
-1
lines changed
  • firestore/android/FirestoreSnippetsCpp/app/src/main/cpp

1 file changed

+1
-1
lines changed

firestore/android/FirestoreSnippetsCpp/app/src/main/cpp/snippets.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -612,7 +612,7 @@ void ReadDataListen(firebase::firestore::Firestore* db) {
612612
// [START listen_document]
613613
DocumentReference doc_ref = db->Collection("cities").Document("SF");
614614
doc_ref.AddSnapshotListener(
615-
[](const DocumentSnapshot& snapshot, Error error) {
615+
[](const DocumentSnapshot& snapshot, Error error, const std::string& errorMsg) {
616616
if (error == Error::kErrorOk) {
617617
if (snapshot.exists()) {
618618
std::cout << "Current data: " << snapshot << '\n';

0 commit comments

Comments
 (0)