@@ -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-
223223jni::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