aboutsummaryrefslogtreecommitdiffhomepage
path: root/Firestore/core/src/firebase/firestore/util/string_format.h
diff options
context:
space:
mode:
Diffstat (limited to 'Firestore/core/src/firebase/firestore/util/string_format.h')
-rw-r--r--Firestore/core/src/firebase/firestore/util/string_format.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/Firestore/core/src/firebase/firestore/util/string_format.h b/Firestore/core/src/firebase/firestore/util/string_format.h
index 3d7a1dc..f8da785 100644
--- a/Firestore/core/src/firebase/firestore/util/string_format.h
+++ b/Firestore/core/src/firebase/firestore/util/string_format.h
@@ -21,6 +21,7 @@
#include <string>
#include <utility>
+#include "Firestore/core/src/firebase/firestore/util/string_apple.h"
#include "absl/base/attributes.h"
#include "absl/strings/str_cat.h"
#include "absl/strings/string_view.h"
@@ -66,6 +67,12 @@ class FormatArg : public absl::AlphaNum {
: FormatArg{std::forward<T>(value), internal::FormatChoice<0>{}} {
}
+#if __OBJC__
+ FormatArg(NSObject* object) // NOLINT(runtime/explicit)
+ : AlphaNum{MakeStringView([object description])} {
+ }
+#endif
+
private:
/**
* Creates a FormatArg from a boolean value, representing the string