Fix travis build.

It does not like 'constexpr const' and for object declarations like
this one it should indeed be redundant.
This commit is contained in:
Christian Kamm 2015-07-02 11:40:16 +02:00
parent bf183f425d
commit 5ff733cfb7

View file

@ -308,7 +308,7 @@ static QList<QPair<QString,quint32> > timeMapping = QList<QPair<QString,quint32>
QString Utility::durationToDescriptiveString(quint64 msecs)
{
struct Period { const char *name; quint64 msec; };
Q_DECL_CONSTEXPR const Period periods[] = {
Q_DECL_CONSTEXPR Period periods[] = {
{ QT_TRANSLATE_NOOP("Utility", "%Ln year(s)") , 365*24*3600*1000L },
{ QT_TRANSLATE_NOOP("Utility", "%Ln month(s)") , 30*24*3600*1000L },
{ QT_TRANSLATE_NOOP("Utility", "%Ln day(s)") , 24*3600*1000L },