[PATCH] New configDialogSize() and saveDialogSize() methods

Simon Hausmann hausmann at kde.org
Tue Jan 21 23:25:46 GMT 2003


On Tue, Jan 21, 2003 at 11:49:01PM +0100, Christian Loose wrote:
> > Any opinion on my thoughts regarding passing a KConfig reference
> > instead of a pointer?
> >
> > Simon
> 
> You are right. I forgot to answer your question. Sorry!
> 
> I don't know. Most methods return a pointer to KConfig like KGlobal::config() 
> etc. So if you changed it to passing a KConfig reference instead, you would 
> have to call it like this
> 
> configDialogSize( *config, "Dialog" );
> 
> instead of
> 
> configDialogSize( config, "Dialog" );
> 
> Also what happens if config is null?

I don't think it makes sense to call these methods with a null
pointer, and KGlobal::config() never returns a null pointer either.

Maybe it's a matter of taste though.

Simon




More information about the kde-core-devel mailing list