[Qt-interest] error

Thiago Macieira thiago.macieira at trolltech.com
Fri Mar 20 09:15:11 CET 2009


Sujan Dasmahapatra wrote:
>        geometry[count] = new Geometry;
>        geometry[count] = geometry;

This part of the code doesn't make sense. In fact, I doubt it compiles, 
either line. If geometry is Geometry*, then each item in the array is a 
Geometry, so you can't assign a pointer to it.

-- 
Thiago Macieira - thiago.macieira (AT) nokia.com
  Senior Product Manager - Nokia, Qt Software
      Sandakerveien 116, NO-0402 Oslo, Norway
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part.
Url : http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20090320/02849450/attachment.bin 


More information about the Qt-interest-old mailing list