File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -29,6 +29,12 @@ using Type = FieldValue::Type;
2929
3030// Constructors
3131
32+ FieldValueInternal::FieldValueInternal () {
33+ auto & value = absl::get<SharedMessage<google_firestore_v1_Value>>(value_);
34+ value->which_value_type = google_firestore_v1_Value_map_value_tag;
35+ value->map_value = {};
36+ }
37+
3238FieldValueInternal::FieldValueInternal (bool value) : type_{Type::kBoolean } {
3339 auto & proto = GetProtoValue ();
3440 proto->which_value_type = google_firestore_v1_Value_boolean_value_tag;
Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ namespace firestore {
2727
2828class FieldValueInternal {
2929 public:
30- FieldValueInternal () = default ;
30+ FieldValueInternal ();
3131
3232 explicit FieldValueInternal (bool value);
3333 explicit FieldValueInternal (int64_t value);
You can’t perform that action at this time.
0 commit comments