Rename 'class' parameter because it's reserved in C++

This commit is contained in:
jief 2019-12-20 15:54:11 +01:00
parent 28886d3b6f
commit 38204b0b4c

View File

@ -1879,13 +1879,13 @@ static NSVGclipPath* nsvg__findClipPath(NSVGparser* p, const char* name)
return *link;
}
static int substr(const char* class, char* style)
static int substr(const char* aClass, char* style)
{
const char *p;
while (*class) {
while (*aClass) {
char *s = style;
p = class++;
p = aClass++;
while (*p++ == *s++) {
if (*s == '\0') {
if ((*p == '\0') || (*p == ' ')) {