Skip to content

Commit 737404f

Browse files
Googlera-maurice
authored andcommitted
Add implementation for Storage::GetReference[FromUrl](std::string)
Without this, any app that uses these will fail to link. PiperOrigin-RevId: 249853131
1 parent 71f454a commit 737404f

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

storage/src/include/firebase/storage.h

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,12 +108,16 @@ class Storage {
108108
/// @brief Get a StorageReference for the specified path.
109109
StorageReference GetReference(const char* path) const;
110110
/// @brief Get a StorageReference for the specified path.
111-
StorageReference GetReference(const std::string& path) const;
111+
StorageReference GetReference(const std::string& path) const {
112+
return GetReference(path.c_str());
113+
}
112114

113115
/// @brief Get a StorageReference for the provided URL.
114116
StorageReference GetReferenceFromUrl(const char* url) const;
115117
/// @brief Get a StorageReference for the provided URL.
116-
StorageReference GetReferenceFromUrl(const std::string& url) const;
118+
StorageReference GetReferenceFromUrl(const std::string& url) const {
119+
return GetReferenceFromUrl(url.c_str());
120+
}
117121

118122
/// @brief Returns the maximum time in seconds to retry a download if a
119123
/// failure occurs.

0 commit comments

Comments
 (0)