Of course we do not know the function at hand, but my best guess would be that 
it's a quite simple one evaluating always true on Windows platforms. Therefore 
this function probably will be inlined. Which leads us to an always true 
conditional, which will be optimised out eventually. I don't think that it does 
matter in anyway if this method is static or not. Secondly there's runtime 
optimisation in any c++ compiler? I must have been living under a rock :)

So André's statement still holds.

greetz,
mike

On Aug 29, 2012, at 7:07 PM, Diego Iastrubni <[email protected]> wrote:

> On Tue, Aug 28, 2012 at 10:56 AM, Christian Kandeler 
> <[email protected]> wrote:
>      QStringList rc(QLatin1String(".svn"));
>      if (Utils::HostOsInfo::isWindowsHost())
>          rc.push_back(QLatin1String("_svn"));
>      return rc;
> 
> Please tell us that this method is static and the compiler knows how to 
> optimize it at compilation time and not in runtime.
> _______________________________________________
> Qt-creator mailing list
> [email protected]
> http://lists.qt-project.org/mailman/listinfo/qt-creator

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

Reply via email to