[prev in list] [next in list] [prev in thread] [next in thread] 

List:       pykde
Subject:    [PyKDE] Bug in QStringList ([] access)
From:       Andreas Gerstlauer <gerstl () ics ! uci ! edu>
Date:       2002-03-28 7:13:01
[Download RAW message or body]

I just installed the latest version (3.1) of sip and PyQt
and it seems that there is a bug in qstringlist.sip,
specifically the __getitem__(int) method.
If I read that correctly, the idx parameter is missing
from the sipParseArgs call and the attached patch should
fix that.

Andreas


["qstringlist.diff" (text/plain)]

Index: qstringlist.sip
===================================================================
RCS file: /home/cvs/public/PyQt/qstringlist.sip,v
retrieving revision 1.7
diff -u -r1.7 qstringlist.sip
--- qstringlist.sip	24 Feb 2002 01:36:06 -0000	1.7
+++ qstringlist.sip	28 Mar 2002 06:02:04 -0000
@@ -80,7 +80,7 @@
 		QStringList *ptr;
 		int idx;
 
-		if (sipParseArgs(&sipArgsParsed,sipArgs,"ni",&sipSelfObj,sipClass_QStringList,&ptr))
+		if (sipParseArgs(&sipArgsParsed,sipArgs,"ni",&sipSelfObj,sipClass_QStringList,&ptr,&idx))
 		{
 			if (idx < 0 || idx >= ptr -> count())
 			{


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic