[Qt-interest] what is wrong with this Complex Data Structure
Jeroen De Wachter
jeroen.dewachter at barco.com
Tue May 11 10:19:08 CEST 2010
I'm gonna go out on a limb here and suggest you replace the : on the
line you indicated with a ;
Meir Yanovich wrote:
> Hi
> i have this complex type to hold complex JSON data
> when i try to insert data to it it allways gives me compilation errors:
> here is the code :
> QMap<QString,QList<QMap<QString,QString > > > ResultMap;
> QList<QMap<QString,QString > > result_set;
>
> for(int i = 3;i<3;i++)
> {
> QMap<QString,QString> result_set_map;
> result_set_map.insert("www","wwwww");
> result_set.append( result_set_map):
> <--------------------This is where the error
>
> }
> ResultMap.insert("notification_info", result_set);
>
> The error im getting is :
> error C2143: syntax error : missing ';' before ':'
> error C2143: syntax error : missing ';' before ':'
>
> what is wrong here ?
> ------------------------------------------------------------------------
>
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-interest
>
DISCLAIMER:
Unless indicated otherwise, the information contained in this message is privileged and confidential, and is intended only for the use of the addressee(s) named above and others who have been specifically authorized to receive it. If you are not the intended recipient, you are hereby notified that any dissemination, distribution or copying of this message and/or attachments is strictly prohibited. The company accepts no liability for any damage caused by any virus transmitted by this email. Furthermore, the company does not warrant a proper and complete transmission of this information, nor does it accept liability for any delays. If you have received this message in error, please contact the sender and delete the message. Thank you.
More information about the Qt-interest-old
mailing list