refs #624 Some more occurrences of constexpr.

This commit is contained in:
Mathew Sutcliffe
2016-03-20 21:54:04 +00:00
parent 6f1cf8e3d7
commit a1861c69f0
10 changed files with 16 additions and 16 deletions

View File

@@ -47,7 +47,7 @@ namespace BlackMisc
void CSettingsAudio::initNotificationFlags()
{
// if we add flags in the future, we automatically extend ...
static const int l = 1 + static_cast<int>(CNotificationSounds::Notification::NotificationsLoadSounds);
constexpr int l = 1 + static_cast<int>(CNotificationSounds::Notification::NotificationsLoadSounds);
if (this->m_notificationFlags.length() < l)
{
int cl = m_notificationFlags.length();