Skip to content

Commit de6f5ed

Browse files
authored
A couple of minor fixes in NativeToJsBridge (#151)
1 parent d740554 commit de6f5ed

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

ReactCommon/cxxreact/NativeToJsBridge.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,6 @@ void NativeToJsBridge::callFunction(
181181
#else
182182
(void)(systraceCookie);
183183
#endif
184-
SystraceSection s("NativeToJsBridge::callFunction", "module", module, "method", method);
185184
// This is safe because we are running on the executor's thread: it won't
186185
// destruct until after it's been unregistered (which we check above) and
187186
// that will happen on this thread

ReactCommon/cxxreact/NativeToJsBridge.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ class NativeToJsBridge {
114114
bool m_applicationScriptHasFailure = false;
115115

116116
#ifdef WITH_FBSYSTRACE
117-
std::atomic_uint_least32_t m_systraceCookie = ATOMIC_VAR_INIT();
117+
std::atomic_uint_least32_t m_systraceCookie{};
118118
#endif
119119
};
120120

0 commit comments

Comments
 (0)