On domingo, 27 de outubro de 2013 22:51:59, Jiergir Ogoerg wrote:
> But looking at its source code [1] and since this was a micro-optimization
> to begin with, I guess it's
> not worth bothering caching the home dir path.

Since QDir::homePath() needs to be thread-safe, you need to use 
Q_GLOBAL_STATIC because it is thread-safe.

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

Attachment: signature.asc
Description: This is a digitally signed message part.

_______________________________________________
Development mailing list
[email protected]
http://lists.qt-project.org/mailman/listinfo/development

Reply via email to