diff options
author | zxu <zxu@google.com> | 2018-03-06 14:28:04 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-03-06 14:28:04 -0500 |
commit | 8311c6432ecff78bedd13e27f64d241659324786 (patch) | |
tree | 982484ba69cf17172ee4e1308254a0b76894b7d5 /Firestore/core/src/firebase/firestore/model | |
parent | 34ebf10b0acc65f1924d723e82085d4104bc281d (diff) |
port paths to FSTDocumentKey (#877)
* replace path with C++ implementation in FSTDocumentKey.{h,mm} only
* address changes
* address changes
Diffstat (limited to 'Firestore/core/src/firebase/firestore/model')
-rw-r--r-- | Firestore/core/src/firebase/firestore/model/resource_path.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/Firestore/core/src/firebase/firestore/model/resource_path.h b/Firestore/core/src/firebase/firestore/model/resource_path.h index 53c1951..6ff1b68 100644 --- a/Firestore/core/src/firebase/firestore/model/resource_path.h +++ b/Firestore/core/src/firebase/firestore/model/resource_path.h @@ -41,6 +41,8 @@ class ResourcePath : public impl::BasePath<ResourcePath> { } ResourcePath(std::initializer_list<std::string> list) : BasePath{list} { } + explicit ResourcePath(SegmentsT&& segments) : BasePath{std::move(segments)} { + } /** * Creates and returns a new path from the given resource-path string, where * the path segments are separated by a slash "/". @@ -70,9 +72,6 @@ class ResourcePath : public impl::BasePath<ResourcePath> { } private: - explicit ResourcePath(SegmentsT&& segments) : BasePath{std::move(segments)} { - } - // So that methods of base can construct ResourcePath using the private // constructor. friend class BasePath; |