Changeset 07e43cf61a in tspsg for src/tspmodel.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/tspmodel.cpp

    r7a39458d16 r07e43cf61a  
    2424#include "tspmodel.h"
    2525
     26#include <QApplication>
     27#include <QFile>
     28#include <QMessageBox>
     29#include <QSettings>
     30#include <QtCore/qmath.h>
     31
     32#include "tspsolver.h"
     33#include "os.h"
     34
    2635/*!
    2736 * \brief Class constructor.
     
    2938 */
    3039CTSPModel::CTSPModel(QObject *parent)
    31     : QAbstractTableModel(parent), nCities(0)
    32 {
    33     settings = initSettings(this);
    34 }
     40    : QAbstractTableModel(parent), settings(initSettings(this)), nCities(0) {}
    3541
    3642/*!
Note: See TracChangeset for help on using the changeset viewer.