Minor tweaks, formatting

This commit is contained in:
Klaus Basan
2018-01-09 05:36:04 +01:00
parent 1cc3ae09c6
commit 3fb0685d53
6 changed files with 32 additions and 21 deletions

View File

@@ -162,9 +162,9 @@ namespace BlackConfig
return QDateTime::currentDateTime() > getEol();
}
QString boolToYesNo(bool v)
const QString boolToYesNo(bool v)
{
return v ? "yes" : "no";
return v ? QStringLiteral("yes") : QStringLiteral("no");
}
const QString &CBuildConfig::compiledWithInfo(bool shortVersion)
@@ -210,7 +210,7 @@ namespace BlackConfig
const QString &CBuildConfig::buildDateAndTime()
{
// http://en.cppreference.com/w/cpp/preprocessor/replace#Predefined_macros
static const QString buildDateAndTime(__DATE__ " " __TIME__);
static const QString buildDateAndTime = QString(__DATE__ " " __TIME__).simplified();
return buildDateAndTime;
}