mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-04-24 04:16:00 +08:00
Fix warnings in React.xcodeproj
Summary: Various fixes of xcode projects and cleaning up some warnings Closes https://github.com/facebook/react-native/pull/13109 Differential Revision: D4762652 Pulled By: lacker fbshipit-source-id: b452976a58962439de4adecc8e703264af40cb38
This commit is contained in:
committed by
Facebook Github Bot
parent
1f15c7526a
commit
9d377e98a0
@@ -47,7 +47,7 @@ private:
|
||||
namespace std {
|
||||
template<>
|
||||
struct hash<facebook::react::ExecutorToken> {
|
||||
const size_t operator()(const facebook::react::ExecutorToken& token) const {
|
||||
size_t operator()(const facebook::react::ExecutorToken& token) const {
|
||||
return (size_t) token.getPlatformExecutorToken().get();
|
||||
}
|
||||
};
|
||||
|
||||
@@ -95,7 +95,7 @@ public:
|
||||
*/
|
||||
std::string str() const {
|
||||
const JSChar* utf16 = JSC_JSStringGetCharactersPtr(m_context, m_string);
|
||||
int stringLength = JSC_JSStringGetLength(m_context, m_string);
|
||||
size_t stringLength = JSC_JSStringGetLength(m_context, m_string);
|
||||
return unicode::utf16toUTF8(utf16, stringLength);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user