Skip to content
This repository was archived by the owner on Aug 31, 2021. It is now read-only.

Commit 324bef8

Browse files
committed
libfoundation: Correct local variable naming in MCStringCreateWithSysString()
Locals should use `t_`, not `p_`.
1 parent bab7db2 commit 324bef8

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

libfoundation/src/foundation-string.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5449,11 +5449,11 @@ MCStringCreateWithSysString(const char *p_sys_string,
54495449
}
54505450

54515451
/* Count the number of chars */
5452-
size_t p_byte_count;
5453-
for (p_byte_count = 0; p_sys_string[p_byte_count] != '\0'; ++p_byte_count);
5452+
size_t t_byte_count;
5453+
for (t_byte_count = 0; p_sys_string[p_byte_count] != '\0'; ++t_byte_count);
54545454

54555455
return MCStringCreateWithBytes((const byte_t *) p_sys_string,
5456-
p_byte_count,
5456+
t_byte_count,
54575457
kMCStringEncodingUTF8,
54585458
false, /* is_external_rep */
54595459
r_string);

0 commit comments

Comments
 (0)