[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-devel
Subject: Re: locate and default return value
From: Waldo Bastian <bastian () suse ! de>
Date: 1999-08-03 7:13:02
[Download RAW message or body]
On Mon, 02 Aug 1999, John Corey wrote:
> >From Casten's other email about putting this in a QLineEdit box, he
> >should use locateLocal() if the original locate/findResource returns
> >null. But I don't see it as anything that would warrant changing the
> >way KStandardDirs works now.
>
> Come to think of it, about the uniq paramenter I added to
> findAllResources() a while ago. I set it to default to false, just to
> ensure everything's compatible. But I haven't been able to find
> anything that would need to know about duplicates, so how's everyone
> feel about either making it default to true? Or even removing it and
> just always return lists without duplicates?
KConfig uses findAllResources to find _all_ config files with a given
name. So this one definitly wants to get the duplicates. Changing the
default to true makes sense though. Just make sure you add a 'false'
parameter to KConfig. (in kconfigbackend.cpp to be precise)
Cheers,
Waldo
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic