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

List:       kde-commits
Subject:    Re: kdebase/kcontrol/componentchooser
From:       Carsten Pfeiffer <carpdjih () cetus ! zrz ! tu-berlin ! de>
Date:       2003-09-23 17:47:37
[Download RAW message or body]

-----BEGIN PGP SIGNED MESSAGE-----

On Tuesday 23 September 2003 15:17, Matthias Kretz wrote:

> +                        KSimpleConfig *cfg=new
> KSimpleConfig(latestEditedService); +                        plugin->load(
> cfg );
> +                        delete cfg;

Please don't allocate that on the heap unless you have to.

KSimpleConfig cfg( latestEditedService );
will do just fine. No malloc, no free needed.

Cheers
Carsten Pfeiffer
-----BEGIN PGP SIGNATURE-----

iQEVAwUBP3CHO6WgYMJuwmZtAQEoZwf/eIr0ARxiLrAOKxzgeXb2wyQ/fAKc4o7C
7ClIlGOOQ65JIt2e51xDGx5GWLktuRKsGDc46DWaNsfwmG3xW919dHA39JuECuZo
WvPoviu9QkqfE+a8yb37dF8yVFpes7OGSTG3d3aLcynurRaKSikYYYQHLTYXwhlq
NsfAohvttYkbZ3/h/iz5tr8LexoeNTsq9rXkQQI0Jq0xPSyjH466npcP22soOIU6
g5sETi0BP1w7rLummtE2yxErRUHdyAB4CTE8EilB6Tb1y5WxllPYIFMstwJmDPWy
+Gjw+a/3apIjBDqUc8sA0Ox2ImiRiPBhi99Gc5BUbGCH7+MlsYX5EA==
=ilfe
-----END PGP SIGNATURE-----
[prev in list] [next in list] [prev in thread] [next in thread] 

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