From kde-devel Mon Aug 02 00:48:01 1999 From: Cristian Tibirna Date: Mon, 02 Aug 1999 00:48:01 +0000 To: kde-devel Subject: Re: locate and default return value X-MARC-Message: https://marc.info/?l=kde-devel&m=93355474606386 On Mon, 2 Aug 1999, Carsten Pfeiffer wrote: > Hi, > > when locate()/findResource() can't find the desired file, it returns > QString::null - can't we give it an additional parameter to be returned > then? Just like KConfig does. > > We would save the if (bla.isNull()), then. > > It can have a default parameter QString::null, so no changes would have to > be made to existing code. > Good idea. Taj? Cristian