From 8fb1bc18bad99b2de79783848b41d07da01315a7 Mon Sep 17 00:00:00 2001
From: chenqiyang <1406175257@qq.com>
Date: 星期三, 01 九月 2021 17:04:05 +0800
Subject: [PATCH] 采用纯oc sdk解决版本适配问题;解决呼叫不能截屏问题

---
 Shared.IOS.HDLLinphoneSDK/Shared.IOS.HDLLinphoneSDK/Library/linphone.framework/Headers/utils/utils.h |    7 ++-----
 1 files changed, 2 insertions(+), 5 deletions(-)

diff --git a/Shared.IOS.HDLLinphoneSDK/Shared.IOS.HDLLinphoneSDK/Library/linphone.framework/Headers/utils/utils.h b/Shared.IOS.HDLLinphoneSDK/Shared.IOS.HDLLinphoneSDK/Library/linphone.framework/Headers/utils/utils.h
old mode 100755
new mode 100644
index 6e0493d..0bf5883
--- a/Shared.IOS.HDLLinphoneSDK/Shared.IOS.HDLLinphoneSDK/Library/linphone.framework/Headers/utils/utils.h
+++ b/Shared.IOS.HDLLinphoneSDK/Shared.IOS.HDLLinphoneSDK/Library/linphone.framework/Headers/utils/utils.h
@@ -83,11 +83,8 @@
 	LINPHONE_PUBLIC std::string toString (long double val);
 	LINPHONE_PUBLIC std::string toString (const void *val);
 
-	template<typename T>
-	LINPHONE_PUBLIC inline std::string toString (const T &val) {
-		std::ostringstream ss;
-		ss << val;
-		return ss.str(); }
+	template<typename T, typename = typename std::enable_if<IsDefinedEnum<T>::value, T>::type>
+	LINPHONE_PUBLIC inline std::string toString (const T &val) { return getEnumValueAsString(val); }
 
 	LINPHONE_PUBLIC int stoi (const std::string &str, size_t *idx = 0, int base = 10);
 	LINPHONE_PUBLIC long long stoll (const std::string &str, size_t *idx = 0, int base = 10);

--
Gitblit v1.8.0