From kde-commits Wed Jan 12 12:26:46 2005 From: David Faure Date: Wed, 12 Jan 2005 12:26:46 +0000 To: kde-commits Subject: Re: kdenonbeta/kio_mhtml Message-Id: <200501121326.47003.faure () kde ! org> X-MARC-Message: https://marc.info/?l=kde-commits&m=110553281432514 On Wednesday 12 January 2005 09:14, Frerich Raabe wrote: > On Monday 10 January 2005 17:29, Spiros Georgaras wrote: > > [I'm not quoting the relevant code excerpt here since that looks awful in > KMail.] > > All your checks like 'fullPath.right(4).lower()==".mht"' could nicely get > replaced with 'fullPath.endsWith( ".mht", false );' (the second parameter > meaning 'no case-sensitive comparison'). Or using KMimeType instead of hardcoded extensions checks :) -- David Faure, faure@kde.org, sponsored by Trolltech to work on KDE, Konqueror (http://www.konqueror.org), and KOffice (http://www.koffice.org).