ChatON:ExCApi: Rename for consistency

This commit is contained in:
HanishKVC 2024-05-07 11:46:40 +05:30
parent 43a3a91b03
commit 0852f3b7ec

View file

@ -594,8 +594,8 @@ inline int32_t chaton_tmpl_apply_ex_capi(
bool alertAssistantAtEnd, bool alertAssistantAtEnd,
char *dest, char *dest,
int32_t destLength, int32_t destLength,
char *partTypes, char *partsTypes,
int32_t *partLengths, int32_t *partsLengths,
int32_t *pNumParts int32_t *pNumParts
) { ) {
if ((tmpl == nullptr) || (dest == nullptr)) { if ((tmpl == nullptr) || (dest == nullptr)) {
@ -619,12 +619,12 @@ inline int32_t chaton_tmpl_apply_ex_capi(
strlcpy(dest, taggedMsgs.c_str(), destLength); strlcpy(dest, taggedMsgs.c_str(), destLength);
} }
if (*pNumParts > 0) { if (*pNumParts > 0) {
if (partTypes != nullptr) { if (partsTypes != nullptr) {
strlcpy(partTypes, types.c_str(), *pNumParts); strlcpy(partsTypes, types.c_str(), *pNumParts);
} }
if (partLengths != nullptr) { if (partsLengths != nullptr) {
for(int i=0; i < *pNumParts; i++) { for(int i=0; i < *pNumParts; i++) {
partLengths[i] = lens[i]; partsLengths[i] = lens[i];
} }
} }
} }