Changeset 0816326


Ignore:
Timestamp:
10/02/17 23:03:50 (5 years ago)
Author:
Philipp Spitzer <philipp@…>
Branches:
master
Children:
f519c91
Parents:
0c1d3ea
git-author:
Philipp Spitzer <philipp@…> (10/02/17 22:21:35)
git-committer:
Philipp Spitzer <philipp@…> (10/02/17 23:03:50)
Message:

C++98 compatibility: Variable initialization in SqlEngine? class.

Location:
src/sql
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • src/sql/sqlengine.cpp

    r0c1d3ea r0816326  
    3838#include <QDebug>
    3939
    40 SqlEngine::SqlEngine(QObject *aParent): QObject(aParent) {
     40SqlEngine::SqlEngine(QObject *aParent): QObject(aParent), DATE_FORMAT("yyyy-MM-dd"), TIME_FORMAT("hh:mm") {
    4141#if QT_VERSION >= 0x050000
    4242    QDir dbPath(QStandardPaths::writableLocation(QStandardPaths::DataLocation));
  • src/sql/sqlengine.h

    r0c1d3ea r0816326  
    2929    Q_OBJECT
    3030    public:
    31         const QString DATE_FORMAT = "yyyy-MM-dd";
    32         const QString TIME_FORMAT = "hh:mm";
     31        const QString DATE_FORMAT; // "yyyy-MM-dd"
     32        const QString TIME_FORMAT; // "hh:mm"
    3333
    3434        QString dbFilename; ///< database filename including path
Note: See TracChangeset for help on using the changeset viewer.