[Uml-devel] kdesdk/umbrello/umbrello
Carsten Pfeiffer
pfeiffer at kde.org
Tue Jul 13 10:07:05 UTC 2004
On Tuesday 13 July 2004 12:40, Sebastian Stein wrote:
> - resize( config->readSizeEntry("Geometry", new QSize(630,460)) );
> + QSize * tmpQSize = new QSize(630,460);
> + resize( config->readSizeEntry("Geometry", tmpQSize) );
> + delete tmpQSize;
You can get a pointer to the QSize object with the &-operator, no need to
allocate it with new (and no need to delete it, then).
QSize tmpQSize(630,460)
resize( config->readSizeEntry("Geometry", &tmpQSize ));
Cheers
Carsten Pfeiffer
More information about the umbrello-devel
mailing list