From kde-commits Mon Jan 14 02:11:03 2002 From: Rik Hemsley Date: Mon, 14 Jan 2002 02:11:03 +0000 To: kde-commits Subject: Re: kdebase/kcontrol/kdm X-MARC-Message: https://marc.info/?l=kde-commits&m=101109313018863 #if Oswald Buddenhagen > > (I will never understand why people use QFont pointers) > > > because it's more effective? c++ makes many things simple. especially > unnecessarily slow/bloated code (not that it would matter much in this > case, but in general i'm sure we could make kde twice as fast by > eliminating typical unefficiencies hidden by high-level constructs). > even if qfont is a qshared, there is still a significant overhead in > copying it compared to assigning a pointer. Did you measure that ? What was the outcome ? It's bad programming style to use pointers to QFont when they're not necessary, so you need a good reason for it. Rik