소스 검색

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 10 년 전
부모
커밋
fcde6eabb6
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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;