Skip to content

Commit

Permalink
Support Qt 5.6 / C++11
Browse files Browse the repository at this point in the history
By adding a space (or really anything other than underscore) between
the space-string literal and the underscore that followed it, we
prevent the compiler from interpreting the pair as a user-defined
literal (a concept added in C++11).

There's no need to add a space *before* the space-string literal, but
that just made it look a little nicer.
  • Loading branch information
pcolby committed Mar 24, 2016
1 parent af3fa45 commit 3bb2f60
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/polar/v2/trainingsession.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2375,7 +2375,7 @@ QDomDocument TrainingSession::toTCX(const QString &buildTime) const
.appendChild(doc.createTextNode(buildType));
build.appendChild(doc.createElement(QLatin1String("Time")))
.appendChild(doc.createTextNode(
buildTime.isEmpty() ? QString::fromLatin1(__DATE__" "__TIME__) : buildTime));
buildTime.isEmpty() ? QString::fromLatin1(__DATE__ " " __TIME__) : buildTime));
#ifdef BUILD_USER
#define BIPOLAR_STRINGIFY(string) #string
#define BIPOLAR_EXPAND_AND_STRINGIFY(macro) BIPOLAR_STRINGIFY(macro)
Expand Down

0 comments on commit 3bb2f60

Please sign in to comment.