Skip to content

Commit bc9e33d

Browse files
Fix compile
1 parent 273171b commit bc9e33d

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

firestore/src/main/field_value_main.cc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,8 @@ std::string Describe(Type type) {
294294

295295
// Helpers
296296

297-
SharedMessage<google_firestore_v1_Value>& GetProtoValue() {
297+
const SharedMessage<google_firestore_v1_Value>& FieldValueInternal::GetProtoValue()
298+
const {
298299
return absl::get<SharedMessage<google_firestore_v1_Value>>(value_);
299300
}
300301

firestore/src/main/field_value_main.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ class FieldValueInternal {
7575
: type_{type}, value_{std::move(value)} {}
7676

7777
/** Returns the underlying value as a google_firestore_v1_Value proto. */
78-
nanopb::SharedMessage<google_firestore_v1_Value>& GetProtoValue();
78+
const nanopb::SharedMessage<google_firestore_v1_Value>& GetProtoValue() const;
7979

8080
FieldValue::Type type_ = FieldValue::Type::kNull;
8181
// Note: it's impossible to roundtrip between a `DocumentReference` and

0 commit comments

Comments
 (0)