Explorar o código

fix handling of QList<ComplexClass> in the reflection subsytem

This was fixed in cd80b56ee797bc3167f13ac287448e5c67335b21 but was
not complete when the template parameter was a complex class such
as PostItem, where it failed due to a leading period. Re-fixes #1944
Ashish Kulkarni %!s(int64=10) %!d(string=hai) anos
pai
achega
fcde6eabb6
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/lib/reflect.hh

+ 1 - 1
src/lib/reflect.hh

@@ -136,7 +136,7 @@ struct DLL_LOCAL ReflectImpl< QList< X> >: public Reflect {
 			while (name[next] != '\0' && name[next] != ']') ++next;
 			bool ok=true;
 			elm = QString::fromLocal8Bit(name+1,next-1).toInt(&ok);
-			if (name[next] == ']') ++next;
+			while (name[next] == ']' || name[next] == '.') ++next;
 			return ok;
 		}
 		parmsize = 0;