mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-01 05:26:45 +08:00
refs #624 Use constexpr instead of Q_CONSTEXPR.
This commit is contained in:
@@ -73,7 +73,7 @@ namespace BlackMisc
|
||||
|
||||
QString CAtomicFile::randomSuffix()
|
||||
{
|
||||
Q_CONSTEXPR auto max = 2176782335;
|
||||
constexpr auto max = 2176782335;
|
||||
return QString::number(std::uniform_int_distribution<std::decay<decltype(max)>::type>(0, max)(Private::defaultRandomGenerator()), 36);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user