Issue with QStringList

Pierre-Nicolas Rigal pnr at 4js.com
Mon Oct 22 14:22:23 CEST 2007


Hello,

 

In our < normal > code, we've the following construction :

 

enum myEnum { foo = 0, bar = 1, team = 2};

 

QStringList myList;

 

myList[foo] = "value1";

myList[bar] = "value2";

.

 

On Windows/Linux/OSX it works without problem ; under CE, I get an assertion failed, in QList::operator[int i]. (i is not smaller
than count).

If I change my code to use the << operator, it works.

 

Is this expected ?

 

(I haven't tried with a small test case, but I don't something wrong in our code - at least at this position !).

 

Thanks and regards,

Pierre-Nicolas

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.trolltech.com/pipermail/qtce-preview-feedback/attachments/20071022/a44183a1/attachment.html 


More information about the Qtce-preview-feedback mailing list