aboutsummaryrefslogtreecommitdiffhomepage
path: root/Firestore/core/src/firebase/firestore/model/field_value.cc
diff options
context:
space:
mode:
Diffstat (limited to 'Firestore/core/src/firebase/firestore/model/field_value.cc')
-rw-r--r--Firestore/core/src/firebase/firestore/model/field_value.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/Firestore/core/src/firebase/firestore/model/field_value.cc b/Firestore/core/src/firebase/firestore/model/field_value.cc
index 5a19549..45886bf 100644
--- a/Firestore/core/src/firebase/firestore/model/field_value.cc
+++ b/Firestore/core/src/firebase/firestore/model/field_value.cc
@@ -18,6 +18,7 @@
#include <algorithm>
#include <memory>
+#include <utility>
#include <vector>
#include "Firestore/core/src/firebase/firestore/util/firebase_assert.h"
@@ -159,7 +160,7 @@ void FieldValue::SwitchTo(const Type type) {
case Type::Array:
array_value_.~vector();
break;
- default:; // The other types where there is nothing to worry about.
+ default: {} // The other types where there is nothing to worry about.
}
tag_ = type;
// Must call constructor explicitly for any non-POD type to initialize.
@@ -167,7 +168,7 @@ void FieldValue::SwitchTo(const Type type) {
case Type::Array:
new (&array_value_) std::vector<const FieldValue>();
break;
- default:; // The other types where there is nothing to worry about.
+ default: {} // The other types where there is nothing to worry about.
}
}