From 0e652a75fc06040abc6208283d840bb2b142c752 Mon Sep 17 00:00:00 2001 From: cherylEnkidu Date: Thu, 9 Jan 2025 14:23:54 -0500 Subject: [PATCH] fix some syntaxs --- .../core/interfaceForSwift/api/FirebaseFirestoreCpp.h | 6 +++--- .../core/interfaceForSwift/api/collection_stage.cc | 4 ++-- .../core/interfaceForSwift/api/collection_stage.h | 8 ++++---- .../core/interfaceForSwift/api/firestore_pipeline.cc | 3 +++ .../core/interfaceForSwift/api/firestore_pipeline.h | 8 +++++--- Firestore/core/interfaceForSwift/api/pipeline.h | 6 +++--- Firestore/core/interfaceForSwift/api/pipeline_result.h | 6 +++--- .../core/interfaceForSwift/api/pipeline_source.cc | 3 +++ Firestore/core/interfaceForSwift/api/pipeline_source.h | 10 ++++++---- Firestore/core/interfaceForSwift/api/stage.h | 6 +++--- 10 files changed, 35 insertions(+), 25 deletions(-) diff --git a/Firestore/core/interfaceForSwift/api/FirebaseFirestoreCpp.h b/Firestore/core/interfaceForSwift/api/FirebaseFirestoreCpp.h index c07e4d187c7..b5191cc4363 100644 --- a/Firestore/core/interfaceForSwift/api/FirebaseFirestoreCpp.h +++ b/Firestore/core/interfaceForSwift/api/FirebaseFirestoreCpp.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef FIREBASE_FIREBASEFIRESTORECPP_H -#define FIREBASE_FIREBASEFIRESTORECPP_H +#ifndef FIRESTORE_CORE_INTERFACEFORSWIFT_API_FIREBASEFIRESTORECPP_H_ +#define FIRESTORE_CORE_INTERFACEFORSWIFT_API_FIREBASEFIRESTORECPP_H_ #import "collection_stage.h" #import "firestore_pipeline.h" @@ -24,4 +24,4 @@ #import "pipeline_source.h" #import "stage.h" -#endif // FIREBASE_FIREBASEFIRESTORECPP_H +#endif // FIRESTORE_CORE_INTERFACEFORSWIFT_API_FIREBASEFIRESTORECPP_H_ diff --git a/Firestore/core/interfaceForSwift/api/collection_stage.cc b/Firestore/core/interfaceForSwift/api/collection_stage.cc index aefb7a3bad7..3a2654b6dc4 100644 --- a/Firestore/core/interfaceForSwift/api/collection_stage.cc +++ b/Firestore/core/interfaceForSwift/api/collection_stage.cc @@ -23,9 +23,9 @@ namespace api { Collection::Collection(std::string collection_path) : collection_path_(collection_path) { std::cout << "Calling Pipeline Collection ctor" << std::endl; -}; +} } // namespace api } // namespace firestore -} // namespace firebase \ No newline at end of file +} // namespace firebase diff --git a/Firestore/core/interfaceForSwift/api/collection_stage.h b/Firestore/core/interfaceForSwift/api/collection_stage.h index 1c68318af2f..28fe7590fa4 100644 --- a/Firestore/core/interfaceForSwift/api/collection_stage.h +++ b/Firestore/core/interfaceForSwift/api/collection_stage.h @@ -12,8 +12,8 @@ // See the License for the specific language governing permissions and // limitations under the License. -#ifndef FIREBASE_COLLECTION_GROUP_STAGE_H -#define FIREBASE_COLLECTION_GROUP_STAGE_H +#ifndef FIRESTORE_CORE_INTERFACEFORSWIFT_API_COLLECTION_STAGE_H_ +#define FIRESTORE_CORE_INTERFACEFORSWIFT_API_COLLECTION_STAGE_H_ #include #include "stage.h" @@ -25,7 +25,7 @@ namespace api { class Collection : public Stage { public: - Collection(std::string collection_path); + explicit Collection(std::string collection_path); private: std::string collection_path_; @@ -36,4 +36,4 @@ class Collection : public Stage { } // namespace firestore } // namespace firebase -#endif // FIREBASE_COLLECTION_GROUP_STAGE_H +#endif // FIRESTORE_CORE_INTERFACEFORSWIFT_API_COLLECTION_STAGE_H_ diff --git a/Firestore/core/interfaceForSwift/api/firestore_pipeline.cc b/Firestore/core/interfaceForSwift/api/firestore_pipeline.cc index d2eaebbbdb9..fabd05ad7cc 100644 --- a/Firestore/core/interfaceForSwift/api/firestore_pipeline.cc +++ b/Firestore/core/interfaceForSwift/api/firestore_pipeline.cc @@ -13,6 +13,9 @@ // limitations under the License. #include "Firestore/core/interfaceForSwift/api/firestore_pipeline.h" + +#include + #include "Firestore/core/src/api/firestore.h" namespace firebase { diff --git a/Firestore/core/interfaceForSwift/api/firestore_pipeline.h b/Firestore/core/interfaceForSwift/api/firestore_pipeline.h index 5c9e0531112..7b246c3c87f 100644 --- a/Firestore/core/interfaceForSwift/api/firestore_pipeline.h +++ b/Firestore/core/interfaceForSwift/api/firestore_pipeline.h @@ -12,8 +12,10 @@ // See the License for the specific language governing permissions and // limitations under the License. -#ifndef FIREBASE_FIRESTORE_PIPELINE_H -#define FIREBASE_FIRESTORE_PIPELINE_H +#ifndef FIRESTORE_CORE_INTERFACEFORSWIFT_API_FIRESTORE_PIPELINE_H_ +#define FIRESTORE_CORE_INTERFACEFORSWIFT_API_FIRESTORE_PIPELINE_H_ + +#include #include "pipeline_source.h" @@ -32,4 +34,4 @@ class FirestorePipeline { } // namespace firestore } // namespace firebase -#endif // FIREBASE_FIRESTORE_PIPELINE_H +#endif // FIRESTORE_CORE_INTERFACEFORSWIFT_API_FIRESTORE_PIPELINE_H_ diff --git a/Firestore/core/interfaceForSwift/api/pipeline.h b/Firestore/core/interfaceForSwift/api/pipeline.h index 374d2d2d460..3a693e9880f 100644 --- a/Firestore/core/interfaceForSwift/api/pipeline.h +++ b/Firestore/core/interfaceForSwift/api/pipeline.h @@ -12,8 +12,8 @@ // See the License for the specific language governing permissions and // limitations under the License. -#ifndef FIREBASE_PIPELINE_H -#define FIREBASE_PIPELINE_H +#ifndef FIRESTORE_CORE_INTERFACEFORSWIFT_API_PIPELINE_H_ +#define FIRESTORE_CORE_INTERFACEFORSWIFT_API_PIPELINE_H_ #include #include @@ -57,4 +57,4 @@ class Pipeline { } // namespace firestore } // namespace firebase -#endif // FIREBASE_PIPELINE_H +#endif // FIRESTORE_CORE_INTERFACEFORSWIFT_API_PIPELINE_H_ diff --git a/Firestore/core/interfaceForSwift/api/pipeline_result.h b/Firestore/core/interfaceForSwift/api/pipeline_result.h index 3ef9276bf35..10488aa9557 100644 --- a/Firestore/core/interfaceForSwift/api/pipeline_result.h +++ b/Firestore/core/interfaceForSwift/api/pipeline_result.h @@ -12,8 +12,8 @@ // See the License for the specific language governing permissions and // limitations under the License. -#ifndef FIREBASE_PIPELINE_RESULT_H -#define FIREBASE_PIPELINE_RESULT_H +#ifndef FIRESTORE_CORE_INTERFACEFORSWIFT_API_PIPELINE_RESULT_H_ +#define FIRESTORE_CORE_INTERFACEFORSWIFT_API_PIPELINE_RESULT_H_ #include @@ -48,4 +48,4 @@ class PipelineResult { } // namespace firestore } // namespace firebase -#endif // FIREBASE_PIPELINE_RESULT_H +#endif // FIRESTORE_CORE_INTERFACEFORSWIFT_API_PIPELINE_RESULT_H_ diff --git a/Firestore/core/interfaceForSwift/api/pipeline_source.cc b/Firestore/core/interfaceForSwift/api/pipeline_source.cc index 34704cbc64a..9798577661e 100644 --- a/Firestore/core/interfaceForSwift/api/pipeline_source.cc +++ b/Firestore/core/interfaceForSwift/api/pipeline_source.cc @@ -13,6 +13,9 @@ // limitations under the License. #include "Firestore/core/interfaceForSwift/api/pipeline_source.h" + +#include + #include "Firestore/core/interfaceForSwift/api/collection_stage.h" #include "Firestore/core/src/api/document_reference.h" #include "Firestore/core/src/api/firestore.h" diff --git a/Firestore/core/interfaceForSwift/api/pipeline_source.h b/Firestore/core/interfaceForSwift/api/pipeline_source.h index c325286e2c6..7a1c91f35c3 100644 --- a/Firestore/core/interfaceForSwift/api/pipeline_source.h +++ b/Firestore/core/interfaceForSwift/api/pipeline_source.h @@ -12,11 +12,13 @@ // See the License for the specific language governing permissions and // limitations under the License. -#ifndef FIREBASE_PIPELINE_SOURCE_H -#define FIREBASE_PIPELINE_SOURCE_H +#ifndef FIRESTORE_CORE_INTERFACEFORSWIFT_API_PIPELINE_SOURCE_H_ +#define FIRESTORE_CORE_INTERFACEFORSWIFT_API_PIPELINE_SOURCE_H_ #include +#include #include + #include "pipeline.h" namespace firebase { @@ -29,7 +31,7 @@ class DocumentReference; class PipelineSource { public: - PipelineSource(std::shared_ptr firestore); + explicit PipelineSource(std::shared_ptr firestore); Pipeline GetCollection(std::string collection_path) const; @@ -42,4 +44,4 @@ class PipelineSource { } // namespace firestore } // namespace firebase -#endif // FIREBASE_PIPELINE_SOURCE_H +#endif // FIRESTORE_CORE_INTERFACEFORSWIFT_API_PIPELINE_SOURCE_H_ diff --git a/Firestore/core/interfaceForSwift/api/stage.h b/Firestore/core/interfaceForSwift/api/stage.h index 7f30bfcb373..b9a8e83e112 100644 --- a/Firestore/core/interfaceForSwift/api/stage.h +++ b/Firestore/core/interfaceForSwift/api/stage.h @@ -12,8 +12,8 @@ // See the License for the specific language governing permissions and // limitations under the License. -#ifndef FIREBASE_STAGE_H -#define FIREBASE_STAGE_H +#ifndef FIRESTORE_CORE_INTERFACEFORSWIFT_API_STAGE_H_ +#define FIRESTORE_CORE_INTERFACEFORSWIFT_API_STAGE_H_ namespace firebase { namespace firestore { @@ -30,4 +30,4 @@ class Stage { } // namespace firestore } // namespace firebase -#endif // FIREBASE_STAGE_H +#endif // FIRESTORE_CORE_INTERFACEFORSWIFT_API_STAGE_H_