We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 752f904 commit 4a5d60aCopy full SHA for 4a5d60a
1 file changed
src/xrCore/xr_trims.cpp
@@ -7,7 +7,8 @@ LPSTR _TrimLeft(LPSTR str)
7
while (*p && (u8(*p) <= u8(' '))) p++;
8
if (p != str)
9
{
10
- for (LPSTR t = str; *p; t++, p++) *t = *p;
+ LPSTR t = str;
11
+ for (; *p; t++, p++) *t = *p;
12
*t = 0;
13
}
14
return str;
@@ -427,7 +428,7 @@ xr_string& _Trim(xr_string& str)
427
428
LPCSTR _CopyVal(LPCSTR src, xr_string& dst, char separator)
429
430
LPCSTR p;
- ptrdiff_t n;
431
+ std::ptrdiff_t n;
432
p = strchr(src, separator);
433
n = (p > 0) ? (p - src) : xr_strlen(src);
434
dst = src;
0 commit comments