[Interest] file:// is harshing my zen

Thiago Macieira thiago.macieira at intel.com
Thu Dec 17 01:16:41 CET 2015


On Wednesday 16 December 2015 12:27:28 Matthew Woehlke wrote:
> Well, you mentioned toLocalFile, so I assume you already know that "trim
> it" should actually use that. Also:
> 
>   if (uri.scheme() == "file")

Better:
	if (uri.isLocalFile())

QUrl caches internally whether the scheme() is "file", so there's no string 
comparison.

-- 
Thiago Macieira - thiago.macieira (AT) intel.com
  Software Architect - Intel Open Source Technology Center




More information about the Interest mailing list