[patch] KStandardDirs: one crash fix + code cleanups
Jaroslaw Staniek
js at iidea.pl
Wed Jul 9 13:58:02 BST 2008
Allen Winter said the following, On 2008-07-08 22:08:
> On Tuesday 08 July 2008 15:52:49 Jaroslaw Staniek wrote:
>> (for review)
>>
>> Important fix:
>> - Windows: avoid crash in KStandardDirs::exists(fullPath) for empty fullPath
>>
>> Minor cleanups:
>> - KStandardDirs::addResourceDir(): check for empty absdir or type
>> - use more constness
>> - lookupPrefix(): do not check for relpath.isEmpty() twice
>> - replace checking for (bool)filter.length() with !filter.isEmpty()
>> - use QString::isEmpty() instead of isNull()
>> - use default value of 2nd arg for QString::mid()
>>
> Certainly the crash fix is good.
> The other changes also look ok to me.
> Did you run the kstandarddirstest unit test?
Yes, works well, fixed one unrelated issue (r829939), BTW.
OK, commiting.
--
regards / pozdrawiam, Jaroslaw Staniek
Sponsored by OpenOffice Polska (http://www.openoffice.com.pl/en) to work on
Kexi & KOffice (http://www.kexi.pl/en, http://www.koffice.org/kexi)
KDE Libraries for MS Windows (http://windows.kde.org)
More information about the kde-core-devel
mailing list