Changeset 07e43cf61a in tspsg for src/globals.cpp


Ignore:
Timestamp:
Oct 5, 2012, 5:30:23 PM (12 years ago)
Author:
Oleksii Serdiuk
Branches:
appveyor, imgbot, master, readme
Children:
47c811cc09
Parents:
7a39458d16
git-author:
Oleksii Serdiuk <contacts@…> (10/05/12 17:30:23)
git-committer:
Oleksii Serdiuk <contacts@…> (10/05/12 21:58:30)
Message:

Improved compilation time by about 30%.

By reducing number of includes to only required minimum.

NOTE: Compilation time comparison was done by measuring compilation time
while using only one thread (i.e., "make -j1").

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/globals.cpp

    r7a39458d16 r07e43cf61a  
    2424#include "globals.h"
    2525
     26#include <QFile>
     27#include <QObject>
     28#include <QSettings>
     29#include <QWidget>
     30
    2631#ifdef Q_OS_WINCE_WM
    2732#   include <shellapi.h>
    2833#endif
     34
     35bool hasUpdater()
     36{
     37#ifdef Q_OS_WIN32
     38    return QFile::exists("updater/Update.exe");
     39#else // Q_OS_WIN32
     40    return false;
     41#endif // Q_OS_WIN32
     42}
    2943
    3044QSettings *initSettings(QObject *parent)
Note: See TracChangeset for help on using the changeset viewer.