Skip to content

Commit 0045621

Browse files
generatedunixname89002005325676facebook-github-bot
authored andcommitted
Daily arc lint --take CLANGFORMAT
Reviewed By: zertosh Differential Revision: D24679750 fbshipit-source-id: 42d5a8aa40ec99be9a51a8e3eed54f2fc8e29e3a
1 parent 97d6f2e commit 0045621

1 file changed

Lines changed: 14 additions & 11 deletions

File tree

  • ReactAndroid/src/main/java/com/facebook/react/fabric/jni

ReactAndroid/src/main/java/com/facebook/react/fabric/jni/Binding.cpp

Lines changed: 14 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -137,15 +137,16 @@ static inline void updateBufferSizes(
137137
}
138138
}
139139

140-
static inline void computeBufferSizes(int& batchMountItemIntsSize, int& batchMountItemObjectsSize,
141-
std::vector<CppMountItem>& cppCommonMountItems,
142-
std::vector<CppMountItem>& cppDeleteMountItems,
143-
std::vector<CppMountItem>& cppUpdatePropsMountItems,
144-
std::vector<CppMountItem>& cppUpdateStateMountItems,
145-
std::vector<CppMountItem>& cppUpdatePaddingMountItems,
146-
std::vector<CppMountItem>& cppUpdateLayoutMountItems,
147-
std::vector<CppMountItem>& cppUpdateEventEmitterMountItems) {
148-
140+
static inline void computeBufferSizes(
141+
int &batchMountItemIntsSize,
142+
int &batchMountItemObjectsSize,
143+
std::vector<CppMountItem> &cppCommonMountItems,
144+
std::vector<CppMountItem> &cppDeleteMountItems,
145+
std::vector<CppMountItem> &cppUpdatePropsMountItems,
146+
std::vector<CppMountItem> &cppUpdateStateMountItems,
147+
std::vector<CppMountItem> &cppUpdatePaddingMountItems,
148+
std::vector<CppMountItem> &cppUpdateLayoutMountItems,
149+
std::vector<CppMountItem> &cppUpdateEventEmitterMountItems) {
149150
CppMountItem::Type lastType = CppMountItem::Type::Undefined;
150151
int numSameType = 0;
151152
for (const auto &mountItem : cppCommonMountItems) {
@@ -219,7 +220,6 @@ static inline void writeIntBufferTypePreamble(
219220
}
220221
}
221222

222-
223223
jni::local_ref<Binding::jhybriddata> Binding::initHybrid(
224224
jni::alias_ref<jclass>) {
225225
return makeCxxInstance();
@@ -891,7 +891,10 @@ void Binding::schedulerDidFinishTransactionIntBuffer(
891891
// to know exactly how much space must be allocated
892892
int batchMountItemIntsSize = 0;
893893
int batchMountItemObjectsSize = 0;
894-
computeBufferSizes(batchMountItemIntsSize, batchMountItemObjectsSize, cppCommonMountItems,
894+
computeBufferSizes(
895+
batchMountItemIntsSize,
896+
batchMountItemObjectsSize,
897+
cppCommonMountItems,
895898
cppDeleteMountItems,
896899
cppUpdatePropsMountItems,
897900
cppUpdateStateMountItems,

0 commit comments

Comments
 (0)