Skip to content

Commit cd0ca71

Browse files
authored
Tweak code that breaks older versions of Visual Studio (#3809)
1 parent 1671040 commit cd0ca71

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Firestore/core/src/firebase/firestore/model/field_path.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ struct JoinEscaped {
8181
};
8282
} // namespace
8383

84-
constexpr char FieldPath::kDocumentKeyPath[];
84+
constexpr const char* FieldPath::kDocumentKeyPath;
8585

8686
FieldPath FieldPath::FromDotSeparatedString(absl::string_view path) {
8787
if (path.find_first_of("~*/[]") != absl::string_view::npos) {

Firestore/core/src/firebase/firestore/model/field_path.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ class FieldPath : public impl::BasePath<FieldPath>,
3838
public util::Comparable<FieldPath> {
3939
public:
4040
/** The field path string that represents the document's key. */
41-
static constexpr char kDocumentKeyPath[] = "__name__";
41+
static constexpr const char* kDocumentKeyPath = "__name__";
4242

4343
// Note: Xcode 8.2 requires explicit specification of the constructor.
4444
FieldPath() : impl::BasePath<FieldPath>() {

0 commit comments

Comments
 (0)